Mysql indexes Shortcuts

Mysql indexes

Inside a table:
INDEX(indexed_column)

Multiple Column Index
INDEX(indexed_column, indexed_column2)

Add Index to a table
ALTER TABLE table_name ADD INDEX(indexed_column)

Show Indexes:
SHOW INDEXES FROM table_name;

Remove Index
ALTER TABLE table_name DROP INDEX index_name;

Comments

Popular posts from this blog

Accessing Windows Share (Samba) From Linux (XFCE) using Thunar

Bypassing the error by "go get" "tls: failed to verify certificate: x509: certificate signed by unknown authority"

Using phpword to merge two Mircrosoft Office Word .docx documents