EXISTS subquery causes error 1064

一个人想着一个人 提交于 2019-12-12 04:08:36

问题


since my last PLESK Update to 12.0.18 #70, I have a problem with phpMyAdmin using select statements with EXISTS subqueries.

If I take simply the example from the MariaDB website (I tested it with real tables and fields on my DB):

SELECT col1 FROM t1 WHERE EXISTS (SELECT * FROM t2)

Quickly the interpreter underlines "EXISTS" and the "(SELECT" to show the error 1064

#1064 - You have an error in your SQL syntax;

1.  unknown keyword (near "EXISTS" at position 30)
2.  unexpected character (near "(" at position 37)

Important to know: The Select statements works fine on my MariaDB (10.0.20) server using PHP code. Only phpMyAdmin tells me that there is a syntax error.

Is EXISTS depricated?

Thank you!

[phpMyAdmin 4.5.0.2 and MariaDB]


回答1:


That was part of an unfortunate series of bugs with the 4.5.0(.x) releases. The latest version is currently 4.5.2 and this bug has been fixed in that version; I suggest that you upgrade.



来源:https://stackoverflow.com/questions/33690488/exists-subquery-causes-error-1064

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!