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 |
Can we rename database in mysql?
What does mysql flush tables do?
What are views in mysql?
What is myisamchk?
How to get a list of indexes of an existing table?
How to set mysql variable in php?
at first i'm using datediff('d', a.due_date, current_date); but it takes too long to get the result but how can i subtract the current_date - a.due_date and still get the same result like when i use datediff? thank you
Is SET Command is SQL Statement..?
How do you use auto increment?
write a query to mysql in safe mode and to change the root password
Why mysql is used with php?
Is mysql free software?