为什么会报错
sql吧
全部回复
仅看楼主
level 1
忘掉吧365 楼主
set @A1=5;
set @A2=6;
set @theSQL1=concat('if ',@A1,'<',@A2,' then select 5;end if');
PREPARE stmt1 from @theSQL1;
EXECUTE stmt1;
DEALLOCATE PREPARE stmt1;
2023年02月24日 17点02分 1
1