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

Answers were Sorted based on User's Feedback



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

Answer / amith

ALTER TABLE customers ADD INDEX (business_name(4))

Is This Answer Correct ?    2 Yes 0 No

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

Answer / monika

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is the use of mysqli_num_rows?

0 Answers  


What does the file with the extension: frm, myd, and myi contain?

0 Answers  


How do you start MySQL on Linux?

3 Answers  


What is blob and text in mysql?

0 Answers  


What language is used in mysql?

0 Answers  






What is the maximum size of mysql database?

0 Answers  


What is mysqli_num?

0 Answers  


What happens if you no create privilege in a database?

0 Answers  


What is 'mysqlcheck'?

0 Answers  


What causes mysql too many connections?

0 Answers  


how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers...

0 Answers  


What are the benefits of mysql?

0 Answers  


Categories