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 |
What does mysql_query return?
Is mysql a dbms?
What is the role of a limit in a mysql query?
What is the maximum connection pool size?
What happens when the column is set to AUTO INCREMENT and if you reach maximum value in the table?
What is the storage engine for mysql?
What is the maximum no of columns a table can have?
Write a query to count the number of rows of a table in mysql.
How many rows can mysql hold?
How do I kill a mysql connection?
How we can create index in mysql?
What are the drivers in MySQL?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)