declare @a as int
set @a = 2select * from a where a <> 1 and a = @aset @a = 5select * from a where a <> 1 and a = @a
set @a = 2select * from a where a <> 1 and a = @aset @a = 5select * from a where a <> 1 and a = @a
select count(*) from a where a <> @a and a = @a 您的名字很有想象力!~马上结贴罗~