dbTalk Databases Forums  

Check pending state

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Check pending state in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prakash
 
Posts: n/a

Default Check pending state - 08-29-2003 , 01:20 PM






Hi

How do I find all the tables in a schema, are in check pending state?
I don't want to use Load Query on every table. Is there anyway to find
it through a single command.

Thanks

Reply With Quote
  #2  
Old   
ashok
 
Posts: n/a

Default Re: Check pending state - 08-29-2003 , 07:31 PM






Straight from IBM SQL reference doc
-----------------------------------
Example 1: The following is an example of a query that gives us
information about the check pending state of tables. SUBSTR is used to
extract the first 2 bytes of the CONST_CHECKED column of
SYSCAT.TABLES. The first byte represents foreign key constraints, and
the second byte represents check constraints.

SELECT TABNAME,
SUBSTR( CONST_CHECKED, 1, 1 ) AS FK_CHECKED,
SUBSTR( CONST_CHECKED, 2, 1 ) AS CC_CHECKED
FROM SYSCAT.TABLES
WHERE STATUS = 'C'

Regards,

-- ashok

venkatprakash (AT) hotmail (DOT) com (Prakash) wrote in message news:<78b3b5e2.0308291020.5d655985 (AT) posting (DOT) google.com>...
Quote:
Hi

How do I find all the tables in a schema, are in check pending state?
I don't want to use Load Query on every table. Is there anyway to find
it through a single command.

Thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.