| IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc... Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
mailsaurabh.tripathi
Joined: 22 May 2008
Posts: 14
Location: hyderabad
|
| Posted: Mon Jul 07, 2008 1:52 pm Post subject: informational referential constraints |
|
|
| what does informational referential constraints mean! |
|
| Back to top |
|
dick scherrer
Joined: 23 Nov 2006
Posts: 7518
Location: 221 B Baker St
|
| Posted: Mon Jul 07, 2008 7:53 pm Post subject: |
|
|
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 |
|
ashimer
Joined: 13 Feb 2004
Posts: 313
Location: Bangalore
|
| Posted: Mon Jul 07, 2008 8:23 pm Post subject: |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|