Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - SQL 的用法 » 数据完整性 » 列缺省值

 

常量表达式缺省值

可以使用未引用任何数据库对象的常量表达式作为缺省值。使用常量表达式可以设置像自今天起第十五天的日期 这样的列缺省值。要设置上述缺省值,应输入

... DEFAULT ( DATEADD( day, 15, GETDATE() ) );