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

informational referential constraints


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

New User


Joined: 22 May 2008
Posts: 56
Location: hyderabad

PostPosted: Mon Jul 07, 2008 1:52 pm
Reply with quote

what does informational referential constraints mean!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 07, 2008 7:53 pm
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:
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

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Jul 07, 2008 8:23 pm
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
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 Need suggestion on how to force refer... DB2 7
No new posts Referential read of an array element COBOL Programming 6
No new posts Doubt in LOADing a Data into a table ... DB2 1
No new posts Enable/Disable Constraints on DB2 DB2 18
No new posts Rule be enforced by referential integ... DB2 2
Search our Forums:

Back to Top