この構文エラーが発生し続けますが、他の例と比較しても問題は見つかりません。
if EXISTS (select 1 from City where name = 'Perth')
THEN Print 'Record exits - Update'
ELSE Print 'Record doesn''t exist - Insert'
エラーが見つかりました:
#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 EXISTS (select
1 from City where name = 'Perth') THEN Print 'Record e' at line 1
これは、zendクラウドと通常のphpmyadmin mysql 5の両方で取得できます