sql2005与sql2008存储过程中 变量使用的一处区别

sql2008 declare @aa int =100

sql2005中会提示错误 ”不能向局部变量赋予默认值。“

解决方法:

declare @aa int

set @aa=100

你可能感兴趣的:(sql,存储)