Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INFORMIX ONLINE DYNAMIC SERVER

Status
Not open for further replies.

CALYAN

Programmer
Apr 23, 2001
39
US
I WANT TO FIND THE NO. OF RECORDS IN A DATABASE. HOW TO FIND IT?(NOTE DATABASE NOT IN A PARTICULAR TABLE BY USING SELECT COUNT(*) FROM TABLE NAME)
 
Hi,

You can find the number of recrods in your database from the following sql:

select sum(nrows) from "informix".systables

G.R.P.
 
You need to add "where tabid > 100" to the above query or you will include the rows in the system catalog tables.

Jane
 

This can also be done by using where clause.

where owner != "informix".

Since he wanted to know all the records in database, I did not include where condition.

G.R.P.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top