On Tuesday 10 December 2002 15:59, tmb wrote:

> My tutorial db has a number of tables in it... some
> with data... some with no records.
>
> 1 - How can I ask MySQL to tell me the number of
> records in my tables?
> ..a) all at once? Meaning one command to list...
>       tbl_1 6 records
>       tbl_2 3 records
>       tbl_3 0 records
>       etc

SELECT COUNT(*) FROM tbl_1;

> ..b) one table at a time? Meaning one command per tbl

Yes.

> 2 - How can I dump the contens of _all_ tables to the
> screen or to a text file?

Read about mysqldump options at:
        http://www.mysql.com/doc/en/mysqldump.html


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
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

Reply via email to