if (2>0) then
insert into test(id) VALUES(2);
ELSE then
insert into test(id) VALUES(3);
end if;
提示:
if (2>0) then
insert into test(id) VALUES(2);
[Err] 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 (2>0) then
insert into test(id) VALUES(2)' at line 1