在DB里有一个smalldatetime的字段,我无论插入什么值都是null..何解。。
Insert into table1(ID,Date1,Date2)
values('11112222333',CONVERT(varchar(30),getdate(),10),CONVERT(varchar(30),getdate(),10))
select * from table1 where ID = '11112222333'
结果
11112222333,NULL,2018-06-06 00:00:00
DB是sqlServer2008R2 ,其中Date1,Date2都是可空的smalldatetime类型,为何会出现这种结果?
求救..