我试图找回所有与某个" 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的。 第一次发帖提问,希望我没有错过任何内容。