在navicat for mysql 里面执行下面一段代码:
IF 2>1 THEN
SELECT 'aa';
END IF;
报错:
IF 2>1 THEN
SELECT 'aa';
[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>1 THEN
SELECT 'aa'' at line 21
我不知道错在哪里