Thursday, April 7, 2022

MySQL - Working with Indexes

 


Working with indexes

Creating an index with the specified name on a table:

CREATE INDEX <indexname> ON <tablename> (column,...);
Code language: SQL (Structured Query Language) (sql)

Drop an index:

DROP INDEX <indexname>;
Code language: SQL (Structured Query Language) (sql)

Create a unique index:

CREATE UNIQUE INDEX <indexname> ON <tablename> (column,...);

No comments:

Post a Comment

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...