Nissim Lugasy writes:
> How do I retrieve the count for multiple tables with one sql command?
>
> Thanks
Hi!
Depends what is it exactly that you need.
>From mysql database, you can :
select count(*) from user,db where user.user=db.user;
or
select count(user.user), count(db.user) from user,d
* Nissim Lugasy
> How do I retrieve the count for multiple tables with one sql command?
describe select * from t1,t2,t3,t4,t5 where t1.id=t1.id;
You will get the table names in the 'names' column and the row counts in the
'rows' column.
--
Roger
---
How do I retrieve the count for multiple tables with one sql command?
Thanks
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request