isql: How to Make List of Tables & Total Rows?

isql: How to Make List of Tables & Total Rows?

Post by Greg Sheppa » Sat, 26 Mar 1994 07:38:29



 We just got Informix 4.1 Online a week ago so this is definitely a
newbie question:  How can I make a list of all the tables in a certain
database and each table's total rows?  Can I do it with one sql
statement?  Would like output like:

  table1    <total rows>
  table2    <total rows>
etc.  Part of the motivation for listing this info is we have a db with
134 tables...I tried to load the tables with some ascii delimited
files...and after an unknown number of successful loads it bombed with
improper number of columns...need to isolate which table is at fault, so
I can then isolate where "I" went astray.

--
+----------------------------------------------------------------------------+
| Greg Sheppard             "I use a brute force algorithm of cycling: Peddle|

+----------------------------------------------------------------------------+

 
 
 

isql: How to Make List of Tables & Total Rows?

Post by Clay Irvi » Sat, 26 Mar 1994 20:28:17



> We just got Informix 4.1 Online a week ago so this is definitely a
>newbie question:  How can I make a list of all the tables in a certain
>database and each table's total rows?  Can I do it with one sql
>statement?  Would like output like:
>  table1    <total rows>
>  table2    <total rows>

update statistics;
select tabname, nrows from systables;

--
Usenet is like Tetris for people who still remember how to read.
                                                 -Joshua Heller.            


 
 
 

1. ANSI way to get total rows in table

I'm a newbie so this could be a dumb question.

I know I can use a stored procedure to return a row count (sp_spaceused)
that will return
a row count for a specified table. But is there another ANSI or more
portable way to get a total
row count?

Many thanks,

Kelly

2. Using XML to store legal documents

3. About total rows of a table

4. Sql Mail Attachments Corrupt Problem and Solution

5. Total Number of rows in a Table?

6. Accessing Oracle

7. Total Number of Rows Added in a Table?

8. INet testing

9. Total Number of rows in a Table?

10. return one row with total from two unrelated tables

11. Total Number of Rows Added in a Table?

12. Total rows in table

13. How to count total number of rows from all user-tables