Sqlserver
 sql >> Base de données >  >> RDS >> Sqlserver

Contrainte CHECK conditionnelle SQL Server

...
ADD CHECK (
    PaymentTotal + CreditTotal <= InvoiceTotal
)