Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to identify constraints specified on fields of a table?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to identify constraints specified on fields of a table?
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    Post subject: Re: How to identify constraints specified on fields of a tab
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us