0
嗨之間我必須確定這種情況下,約束..情況下,當兩個數據
[driver_surcharge_to] [tinyint] NULL CONSTRAINT CK_Vehicle_driverSurchargeTo CHECK (
1 = case driver_surcharge_from
when null
case driver_age_to
when null then 1
else 0 end
else
case driver_age_to
when null then 0
when (driver_age_to) between 16 and 99 then 1
else 0 end
end),
我試圖把同名的領域,有或沒有它不工作。(括號內)
如何聲明一個案例來驗證他的兩個數字之間的值?
謝謝。