|
Home
/ Technical Support / MySQL
Key Offerings:
B2B and B2C E-Business
Solutions
Offshore
Software Development Outsourcing
Strategic Consulting
Offshore Software Outsourcing
ALTOROS Systems
is headquartered in Tampa, Florida and maintains an office
near Boston, Massachusetts and technology development center
in Belarus and Russia. ALTOROS specializes on providing value-added
e-commerce and web-based software development and offshore
software outsourcing services to emerging enterprises helping
them successfully plan and implement business initiatives.
Contact Us for more
information.
ANALYZE TABLE Syntax
ANALYZE TABLE tbl_name[,tbl_name...]
Analyse and store the key distribution for the table. During the analysis, the table is locked with a read lock. This works on MyISAM and BDB tables.
This is equivalent to running myisamchk -a on the table.
MySQL uses the stored key distribution to decide in which order tables should be joined when one does a join on something else than a constant.
The command returns a table with the following columns:
| Column |
Value |
| Table |
Table name |
| Op |
Always "analyze" |
| Msg_type |
One of status, error, info or warning. |
| Msg_text |
The message. |
You can check the stored key distribution with the SHOW INDEX command. See SHOW DATABASE INFO.
If the table hasn't changed since the last ANALYZE TABLE command, the table will not be analysed again.
|