The following query returns all tables/views in database vtigercrm510 and numbers of records for each table.
SELECT table_name, table_type, engine, table_rows
FROM information_schema.tables t1
WHERE table_schema = 'vtigercrm510'
ORDER BY table_name DESC;
Wednesday, January 13, 2010
Get all tables/views in a database
at 6:44 AM
Labels: MySQL, MySQL Query, vtigerCRM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment