vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. Thanks Joerg |
| |||
| 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 |
| ||||
| >> is it possible to define a CHECK CONSTRAINT on a table, whereas the CHECK-OPTION will be a SELECT. << A check constraint must have search condition. >> With this CHECK CONSTRAINT i try to ensure, that there will always a state only set once within several rows. << That sounds like a UNIQUE constraint. Post better specifications and we can help you. |