C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
SQL Index
1. Create Index statementIt is used to create an index on a table. It allows duplicate value. Syntax CREATE INDEX index_name ON table_name (column1, column2, ...); Example CREATE INDEX idx_name ON Persons (LastName, FirstName); 2. Unique Index statementIt is used to create a unique index on a table. It does not allow duplicate value. Syntax CREATE UNIQUE INDEX index_name ON table_name (column1, column2, ...); Example CREATE UNIQUE INDEX websites_idx ON websites (site_name); 3. Drop Index StatementIt is used to delete an index in a table. Syntax DROP INDEX index_name; Example DROP INDEX websites_idx;
Next TopicDBMS SQL Sub Queries
|