2017-12-27 4 views
-1

특정 "huisnummer"(housenumber)에 연결된 예약이없는 모든 집을 검색하려고합니다. 내 sql 쿼리 반환 키워드를 찾을 수 없습니다.

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 사이 다른이 : 난 내 로컬 호스트에 phpMyAdmin에서 코드를 실행하면

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

는 오류가 발생합니다. 처음으로 질문을 게시 할 때 아무 것도 놓치지 않기를 바랍니다.

+2

쿼리가 –

+0

과 일치하지 않습니다. mysql과 mysqli는 동일한 명령을 실행하므로 차이가 없습니다. 어쨌든, 내가보기에 분명히 볼 수있는 오류 메시지에서 실행 한 전체 SQL 명령을 게시하지 않았다는 것을 알 수 있습니다. 우리가 도움을 줄 수 없다면 여기를 향해 실행하는 정확한 명령을 복사하십시오. – cramopy

+0

Phpmyadmin 버전은 무엇입니까? 관련 [BUG] (https://github.com/phpmyadmin/phpmyadmin/issues/11680)는 phpmyadmin 4.5.2에서만 수정되었습니다. 관련 질문 : [링크] (https://stackoverflow.com/questions/33690488/exists-subquery-causes-error-1064?rq=1) [Link2] (https://stackoverflow.com/questions/36919209/not -exists-as-a-syntax-error? rq = 1) –

답변

0

EXISTS를 사용하여 쿼리를 처리하지 못하는 known phpmyadmin bug이 있습니다.

phpmyadmin 버전 4.5.2 이상을 설치해야합니다.

관련 문제