如何把表a里面的列名datedate默认值改为getdate()? alter table MyTable add datedate CONSTRAINT AddDateDfltDEFAULT getdate() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 右键菜单中选设计表在默认值中写上getdate()就可以了 ALTER TABLE MyTable ADD AddDate smalldatetime NULLCONSTRAINT AddDateDfltDEFAULT getdate() WITH VALUES create table a(a char(10) null, b date not null default getdate())insert into a(a)values('test') ALTER TABLE a ADD CONSTRAINT AddDateDfltDEFAULT getdate() WITH VALUES FOR datedate sqlserver如何计算两个日期之差,精确到毫秒计算 sql2005导入数据库提示varchar 字转换 bit 发生错误 求一段行列轉換SQL 把1个表插入另一个表中的问题 请问我这条语句错在哪里? 端口设置问题 sql 排序问题,在线等! 请教SQL写法 ASP调用存储过程时的错误:ADODB.Command 错误 '800a0bb9' sql复制问题,急~~~~~~~~~~~~~~~~~~~~~~ 怎么让2/5得到40%?
在默认值中写上getdate()就可以了
ADD AddDate smalldatetime NULL
CONSTRAINT AddDateDflt
DEFAULT getdate() WITH VALUES
insert into a(a)values('test')
ADD CONSTRAINT AddDateDflt
DEFAULT getdate() WITH VALUES FOR datedate