Computing.Net > Forums > Database > SQL Query_Help needed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SQL Query_Help needed

Reply to Message Icon

Name: Guna Joshua
Date: June 29, 2007 at 00:02:38 Pacific
OS: dos
CPU/Ram: 22
Product: 222
Comment:

Table Name : SYSTABLES

tabid
tabname

Table Name : SYSREFERENCES

constrid
ptabid


TableName: SYSCONSTRAINTS

Constrid

tabid

I 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



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: June 29, 2007 at 10:41:36 Pacific
Reply:

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:

http://publib.boulder.ibm.com/infoc...


0
Reply to Message Icon

Related Posts

See More


Access 2000 query ESQL/C Help needed



Post Locked

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


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: SQL Query_Help needed

Run-Time error '3141' www.computing.net/answers/dbase/runtime-error-3141/252.html

Need help with SQL-query (access) www.computing.net/answers/dbase/need-help-with-sqlquery-access/209.html

Need SQL Query www.computing.net/answers/dbase/need-sql-query/366.html