Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Table Name : SYSTABLES
tabid
tabnameTable Name : SYSREFERENCES
constrid
ptabid
TableName: SYSCONSTRAINTSConstrid
tabidI want to get the tabname corresponding to tabid present in SYSCONSTRAINT table and also I need the tabname corresponding to ptabid of SYSREFERENCES table.
Note:tabname can be got only from systables only...
Thanks in advance
Joshna..
s.Guna

I'm assuming, based on the table names, that your database is Informix. It's useful to say that when posting your question.
Here is the select for the SYSCONSTRAINT table. That should be enough for you to do SYSREFERENCES:
select tabname, constrname, idxname from sysconstraints,systables where systables.tabid = sysconstraints.tabid
Here is a good online reference for the Informix system catalogue:

![]() |
Access 2000 query
|
ESQL/C Help needed
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |