Create unique index

suggest change

A unique index prevents the insertion of duplicated data in a table. NULL values can be inserted in the columns that form part of the unique index (since, by definition, a NULL value is different from any other value, including another NULL value)

-- Creates a unique index for column 'name' in table 'my_table'
CREATE UNIQUE INDEX idx_name ON my_table(name);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Indexes and Keys:
*Create unique index

Table Of Contents