Hi there,
Does anyone know how to write this command for mysql version 4? (The command is for mysql version 5, I guess since when I check database in mysql server version4 there is no database name information_schema )
command:select concat(table_schema,'.',table_name) as table_name,table_rows from information_schema.tables where table_rows > 1000000 order by table_rows desc;
meaning:show all database,table name and row count from all databases that has table row more than 1000000
Run result with mysql version 5:
mysql> select concat(table_schema,'.',table_name) as table_name,table_rows from information_schema.tables where table_rows > 1000000 order by table_rows desc; +-------------------------------------+------------+
| table_name | table_rows |
+-------------------------------------+------------+
| waka2_dev.PYAT_TABLE_CELL_OLD | 110557706 |
| caap63_ded2.PIOFIT2 | 20052885 |
Run result with mysql version 4
mysql> select concat(table_schema,'.',table_name) as table_name,table_rows from information_schema.tables where table_rows > 1000000 order by table_rows desc;
ERROR 1146: Table 'information_schema.tables' doesn't exist
Anyone please helps
Thanks in advanced!