How do you index just the first four bytes of the column?

Answer Posted / monika

alter table table_name add index(substr(column_name,1,4));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is federated tables in mysql?

549


How to get a list of indexes of an existing table?

599


What is the difference between primary key and candidate key?

579


What is slow query log in mysql?

619


How do I find users in mysql?

633






What are procedures in mysql? Explain

606


What is the use of i-am-a-dummy flag in mysql?

634


I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.

3516


Can we use mysql and mysqli together?

595


What is mysql workbench used for?

601


Is mysql a scripting language?

546


What is the difference between mysql and oracle?

617


What are the 'mysql' command line options?

576


How to Set a root password if there is on root password.

663


What does schema mean?

550