34,588
社区成员
发帖
与我相关
我的任务
分享
declare @tb table (id int,dt datetime default null)
insert into @tb(id) values (1)
select * from @tb
/*
1 NULL
*/
declare @t table(id numeric(12,0))
insert @t select null
select * from @t
/*
id
--------------
NULL
(所影响的行数为 1 行)
*/