if 1=1 begin declare @abc int; set @abc = 1 end print @abc 可以打出1出来 转载于:https://www.cnblogs.com/vimmer/p/3425585.html