Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to add an index to an existing table (mysql)

## Adding an Index to Existing Table
CREATE INDEX indexName ON tableName (ID, LName, FName, LOC);

## Adding an Index to Existing Table with Primary Key
CREATE UNIQUE INDEX indexName ON tableName (ID, LName, FName, LOC);
Source by www.liquidweb.com #
 
PREVIOUS NEXT
Tagged: #add #index #existing #table
ADD COMMENT
Topic
Name
9+8 =