Using MySQL’s “SHOW TABLE STATUS” within other select statements requires pulling this information from the information_schema database. If you where to run this sql statement:
SELECT * FROM (SHOW TABLE STATUS FROM db_name)
MySQL will return a syntax error. Try this method instead for the same result:
SELECT * FROM (
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA=’db_name’
AND TABLE_NAME=’tbl_name’)
You must be logged in to post a comment.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
26 queries. 0.201 seconds