نوشته شده توسط
ASKaffash
سلام
مثل ذیل :
Declare @Command nVarChar(Max)=''
Declare @code_meli nVarChar(Max)=Char(39)+N'سلام'+Char(39)
Set @Command = @Command+@code_meli
Select @Command
ممنونم از لطفتون
بنده فراموش کردم که بگم از ورژن 2005 استفاده میکنم
کوئری که خواستم اجرا کنم با خطا روبه رو شدم
Msg 139, Level 15, State 1, Line 0
Cannot assign a default value to a local variable.
Msg 139, Level 15, State 1, Line 0
Cannot assign a default value to a local variable.
Msg 137, Level 15, State 2, Line 3
Must declare the scalar variable "@Command".
Msg 137, Level 15, State 2, Line 4
Must declare the scalar variable "@Command".