IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to identify constraints specified on fields of a table?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Wed Aug 29, 2007 9:33 pm
Reply with quote

Hi,

Is there any inbuilt system tables or command to identify the constraints (integrity constraint) specfied on the particular field of the DB2 table?

I have tried the below commands in SPUFI and QMF but its not working,


DESCRIBE TABLE OWNERNAME.OBJNAME

regards,
Nagu
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 29, 2007 10:19 pm
Reply with quote

Nagendran wrote:
Hi,

Is there any inbuilt system tables or command to identify the constraints (integrity constraint) specfied on the particular field of the DB2 table?

I have tried the below commands in SPUFI and QMF but its not working,


DESCRIBE TABLE OWNERNAME.OBJNAME

regards,
Nagu

Try this
Code:
  SELECT TBNAME, CHECKNAME, CHECKCONDITION FROM SYSIBM.SYSCHECKS
WHERE TBNAME in ('abcdefgh', 'ijklmn')                               
ORDER BY TBNAME, CHECKNAME                                       
FOR FETCH ONLY WITH UR;                                         
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top