Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us