View Single Post

   
  #2 (permalink)  
Old 05-10-2008, 02:03 PM
Serge Rielau
 
Posts: n/a
Default Re: CHECK CONSTRAINT on DB2 V8 zOS

joerg.sailer@weltbild.com wrote:
> Hello,
> is it possible to define a CHECK CONSTRAINT on a table, whereas the
> CHECK-OPTION will be a SELECT.
> With this CHECK CONSTRAINT i try to ensure, that there will allways a
> state only set once within several rows. If possible, does someone can
> provide an example ? I did not find anything in the docs.

Check constraints are limited to data in the row.
Have you considered using a trigger or an RI constraint?

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Reply With Quote