How to add Btree or hash index to a table in mysql?
14,981
CREATE INDEX
supports USING BTREE
or USING HASH
on the end.
http://dev.mysql.com/doc/refman/5.0/en/create-index.html
Related videos on Youtube
Author by
amir shadaab
Updated on September 03, 2022Comments
-
amir shadaab over 1 year
I have two tables and two queries on those tables. I am using SQL workbench to query these tables. Can someone tell me the syntax of adding BTREE or HASH index to these tables?
-
amir shadaab over 11 yearsWhich one is the default type?
-
Kevin Brown over 6 yearsBTREE is the default.
-
dwkd about 5 yearsalso HASH indexes are only for in-memory tables (or NDB) but not myISAM or InnoDB