小编Dan*_*Erb的帖子

使用if语句进行SQL检查

关于SQL的快速问题如何进行检查,例如:

Alter Table Invoices WITH NOCHECK
ADD CHECK 
Run Code Online (Sandbox Code Playgroud)

现在这是我要添加一个检查的部分,以便column PaymentDate can be null if another column Payment Total is equal to 0also that PaymentDate is not null if Payment Total is greater than 0.

sql sql-server

1
推荐指数
1
解决办法
133
查看次数

标签 统计

sql ×1

sql-server ×1