问题
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