怎样将数据库中的日期设为NULL? 按 Ctrl+0 就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert tableN (datecol)values(Null) alter table tablenamealter column datecol datetimenull 默认为null 我试过将默认值改为NULL,但是仍是不行! 你要傳NULL值給你的日期型列,而不是傳''日期型對NULL 和 '' 處理不同的:declare @d datetime select @d ----default is nullset @d=nullselect @d set @d='' select @d ---- ''='1900-01-01...' update yourtable set datetimefield =NULL create trigger trig_test on yourtable after insert,updateasbegin update yourtable set datetimefield =NULL where datetimefield =0 end 在SQL Sever 中添加作业 游标的用法 这段sql怎么改? 急问一个SQL问题(单表),在线等! 数据库备份问题及求解决 高分求从odbc内导入表内数据到ms-sqlserver,例如是access的数据库,我不用直接从access内,而是用windwos内的,搞定再加分,谢谢 开发基于Web的<<通用数据录入及查询部件>>的讨论 大虾帮忙:什么是sqlDMO?? 苦闷。。,, insert 复制后如何实现类是当前行插入的功能 关于sql server中大小写的问题!重金求助! 求助:SQLServer2005镜像问题!
alter column datecol datetime
null 默认为null
select @d ----default is null
set @d=null
select @d
set @d=''
select @d ---- ''='1900-01-01...'
as
begin
update yourtable set datetimefield =NULL where datetimefield =0
end