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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing of tables in DB

Status
Not open for further replies.

calahans

Programmer
Jun 14, 1999
348
0
0
IE
Hi,<br>
<br>
I'm looking to run an SQL to find the tables in a particular DB. I know SQL but am unfarmiliar with Informix.<br>
<br>
Any help appreciated.<br>
<br>
C
 
Found the solution myself:<br>
<br>
select * from systables
 
Hi,<br>
<br>
A better solution is<br>
select tabname from systables where tabid &lt; 100;<br>
<br>
Tabid 1 - 100 are reserved for Informix's own use.<br>
<br>
HTH,<br>
Ravi...
 
oops, that should be<br>
select tabname from systables where tabid &gt; 99;<br>
<br>
Tabid 1 - 99 are reserved for Informix's own use.<br>
<br>
HTH,<br>
Ravi...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top