Does SQL Server 2008 support the CREATE ASSERTION syntax?

后端 未结 3 1361
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 09:30

Does SQL Server 2008 support the CREATE ASSERTION syntax?

I haven\'t been able to find a straight answer on this.

3条回答
  •  余生分开走
    2021-01-06 10:34

    No, you'd use a CHECK constraint or a TRIGGER instead, depending on complexity.

    • CHECK constraint: at the row level only
    • TRIGGER: across rows or using other tables

提交回复
热议问题