List:General Discussion« Previous MessageNext Message »
From:Victoria Reznichenko Date:December 11 2002 1:18pm
Subject:re: How to see # of rec's in all tables
View as plain text  
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
 / /|_/ / // /\ \/ /_/ / /__   Victoria.Reznichenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




Thread
access->mysqlSandeep Murphy4 Dec
  • Re: access->mysqlSteve Yates4 Dec
  • Re: access->mysqlCrercio O. Silva5 Dec
RE: access->mysqlSteve Bradwell4 Dec
RE: access->mysqlDavid Brodbeck4 Dec
RE: access->mysqlIan Zabel4 Dec
  • Re: access->mysqlCarlin Anderson5 Dec
RE: access->mysqlChris Couture5 Dec
RE: access->mysqlSandeep Murphy5 Dec
  • How is DBTools Software?Will Standley7 Dec
    • Re: How is DBTools Software?Michael She7 Dec
      • RE: How is DBTools Software?Chris Mason8 Dec
        • Re: How is DBTools Software?Insanely Great8 Dec
        • RE: How is DBTools Software?Michael She8 Dec
  • Compiling a list of MySQL tools - Please contribute.Will Standley8 Dec
    • Re: Compiling a list of MySQL tools - Please contribute.Paul DuBois8 Dec
  • Can u us a "source code" file to setup a db in MySQL ?TopMailBox9 Dec
    • Re: Can u us a "source code" file to setup a db in MySQL ?Gerald R. Jensen9 Dec
      • How to get MySQL to list current db's ?Will Standley10 Dec
        • Re: How to get MySQL to list current db's ?Sherwin T. Ang10 Dec
        • Re: How to get MySQL to list current db's ?Daniel Kiss10 Dec
        • Re: How to get MySQL to list current db's ?Michael She10 Dec
          • Where does MySQL store db files?tmb10 Dec
            • How to see # of rec's in all tablestmb10 Dec
              • Re: How to see # of rec's in all tablesBenjamin Pflugmann11 Dec
              • re: How to see # of rec's in all tablesVictoria Reznichenko11 Dec
            • Re: Where does MySQL store db files?Robert Citek10 Dec
              • Re: Where does MySQL store db files?Francisco10 Dec
            • RE: Where does MySQL store db files?Adolfo Bello10 Dec
        • RE: How to get MySQL to list current db's ?Brian P. Austin10 Dec
  • Re: access->mysqlGrant Cooper13 Dec