sql server - Error next '=' after update statement in T.SQL -
I am trying to execute a trigger, and I have the following error associated with this part of my script: < / p>
EXEC (N'update CMDB2 '+' _CI_ '+ @CI_TYPE_ID) SET STATUS =' RESERVE 'where Num__UGLJ_ro__bde__bs__UGLJ_rie = @Rariable and STATUS =' n stock ' Error:
Message 102, Niveau 15, A1, Process 1 CHANGEMENT_ETAT_CI_EN reservation, Ligne 58
Syntax wrong behavior '='.
After the set order
If I specify the table name correctly in the update statement then everything goes fine, otherwise if I specify the table name as the contracted string and
this code >
SET STATUS = 'RESERVE' WHERE NUM__UGLJ_RO__bde__bs__bs__UGLJ_rie = @Rariable and STATUS = 'n stock'
IDE is out of F statement
Comments
Post a Comment