declare @sort_id int
select @sort_id=10
select @sort_id=20 from sysobjects where 1=2
select @sort_id
你认为@sort_id是多少?
是 10,20 还是 NULL