![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#3
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#4
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#5
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#6
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#7
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#8
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#9
| |||
| |||
|
|
Hello, is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number |
#10
| |||
| |||
|
|
is it possible to define a check with the following rules, without using a trigger? When inserting a value in field1: - if field2=true then field1 must be 0 - if field2=false then field1 may be any number I've thought about this: CHECK ((field2=true AND field1=0) OR (field2=false AND field1>0)) is it right? |
![]() |
| Thread Tools | |
| Display Modes | |
| |