set @var=1;if @var>1 then select * from client;elseselect * from otherTable;end if;这是我的mysql查询。你能指出为什么会出错吗?这真的让我筋疲力尽。7 `3 O6 S" b$ s9 r9 \
显示的错误是 n; v, i: ?) T3 `, FIF @var >1 THEN SELECT *FROM client;MySQL said: Documentation#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if @var>1 thenselect * from client' at line 1快速回答会很有帮助。; R2 \+ I% R1 ^& B, n
6 b ]4 S1 ?# s 解决方案: