日期:2014-05-19  浏览次数:20491 次

在线等待~~DATATIME设置默认值
SQLSERVER的DATATIME默认值如何使当前日期减20年

------解决方案--------------------
dateadd(y,-20,getdate())
------解决方案--------------------
create table a(a int,b datetime NOT NULL default(dateadd(year,-20,getdate())))