Make an Index

Quick Notes

Make an Index

// basic create index
CREATE INDEX indexName
ON tableName (colName)

// create index
CREATE INDEX indexName
ON tableName (colName[ASC/DESC])

// with unique values
CREATE UNIQUE INDEX indexName
ON tableName (colName[ASC/DESC])

// With ascending values
CREATE INDEX indexName
ON tableName (colName ASC)

// With descending values
CREATE INDEX indexName
ON tableName (colName DESC)

Drop Index

DROP INDEX indexName;