|
set @ vSQL = @ vSQL + 'delete from' + @ FSrvName + 't_Item where FNumber =' '' + @ FDeNumber + '' 'and FItemClassID = 2001'
Execute (@vSQL)
The value of the string variable (@FDeNumber) in the above dynamic SQL (@vSQL) is: '03 .001 ', and an error is reported after execution.
But when there is no dot in the middle of the string variable value, such as: '03001', it can be executed normally.
Seeking solutions, 100,000 rush !!! |
|