* andy thomas > Is there a command I can give in the mysql client to find the number of > rows in a table or, better still, the number of rows in all the > tables in a database?
The "normal" way: SELECT COUNT(*) FROM table To get all tables in one statement... this is a hack, I'm not sure it will _allways_ give the correct answer, but try this: DESC SELECT * FROM table1,table2,table3,table4,table5 The row count is returned in the coulmn 'rows'. -- Roger query --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php