How do you index just the first four bytes of the column?
Answers were Sorted based on User's Feedback
Answer / amith
ALTER TABLE customers ADD INDEX (business_name(4))
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / monika
alter table table_name add index(substr(column_name,1,4));
Is This Answer Correct ? | 0 Yes | 0 No |
Explain multi-version concurrency control in MySQL?
What is 'mysqlimport'?
What is regexp?
What is orm in mysql?
How to return query output in html format?
The table tbl_sites contains the following data: ----------------------------------------------------- Userid sitename country ------------------------------------------------------ 1 sureshbabu indian 2 PHPprogrammer andhra 3 PHP.net usa 4 PHPtalk.com germany 5 MySQL.com usa 6 sureshbabu canada 7 PHPbuddy.com pakistan 8. PHPtalk.com austria 9. PHPfreaks.com sourthafrica 10. PHPsupport.net russia 11. sureshbabu australia 12. sureshbabu nepal 13. PHPtalk.com italy Write a select query that will displayed the duplicated site name and how many times it is duplicated?
How many triggers are possible in mysql?
How to Change a users password from MySQL prompt. Login as root. Set the password. Update privs.
What is truncate in mysql?
What is mysql used for?
What is relational database in mysql?
How to find the unique values if the value in the column is repeated?