Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
informational referential constraints

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
mailsaurabh.tripathi

New User


Joined: 22 May 2008
Posts: 15
Location: hyderabad

PostPosted: Mon Jul 07, 2008 1:52 pm    Post subject: informational referential constraints
Reply with quote

what does informational referential constraints mean!
Back to top
View user's profile Send private message
References
PostPosted: Mon Jul 07, 2008 1:52 pm    Post subject: Re: informational referential constraints Reply with quote

dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Mon Jul 07, 2008 7:53 pm    Post subject:
Reply with quote

Hello,

Quote:
An informational referential constraint is a referential constraint that is not enforced by DB2 during normal operations.

The quote is from here:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqdref1012079.htm
Back to top
View user's profile Send private message
ashimer

Senior Member


Joined: 13 Feb 2004
Posts: 311
Location: Bangalore

PostPosted: Mon Jul 07, 2008 8:23 pm    Post subject:
Reply with quote

Lets say we create a table

CREATE TABLE EMP (EMPID INT CHECK (EMPID > 1000) NOT ENFORCED
ENABLE QUERY OPTIMIZATION)

here the check constraint is an informational one ..its used to increase performance ...now if u insert a row with empid = 100 the insert will be successful but if u say SELECT * FROM EMP WHERE EMPID = 90 this will return none as u have already set an access path where empid > 1000 ...

its just like telling the optimizer that empid will always be greater than 1000 so dont chk for anything less than that ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1