为什么我的sql查询返回找不到关键字

时间:2017-12-27 14:54:04

标签: mysql mysqli phpmyadmin

我试图找回所有与某个" huisnummer"(housenumber)无关的房屋。

SELECT * FROM huis WHERE NOT EXISTS(select * FROM reservering WHERE reservering.huisnummer = huis.huisnummer)

当我在localhost phpmyadmin中执行代码时出现错误:

Keyword does not recognize. (near "not" at position 25)
Keyword does not recognize. (near "EXISTS" at position 29)
Unexpected token. (near "(" at position 35)

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 0, 25' at line 1

也许mysql&和mysqli的。 第一次发帖提问,希望我没有错过任何内容。

1 个答案:

答案 0 :(得分:0)

known phpmyadmin bug无法使用EXISTS处理查询。

确保安装了phpmyadmin的4.5.2或更高版本。