이게 무슨 말이죠?
본문
select * from where po_start_date < '2015-05-07 15:46:55' and po_end_date > '2015-05-07 15:46:55' and po_openchk = '1'
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where po_start_date < '2015-05-07 15:46:55' and po_end_date > '2015-05-07 15:46:' at line 1
error file : /bbs/board.php
답변 3
select * from where
여기서 테이블명이 빠졌네요
select * from 테이블명 where
select * from where po_start_date < '2015-05-07 15:46:55' and po_end_date > '2015-05-07 15:46:55' and po_openchk = '1'
해당 쿼리를 보시면 from 절에 테이블명이 없습니다.
select * from tablename where ..
이렇게 테이블을 지정하셔야 합니다.
error file : /bbs/board.php
라고 오류파일정보가 나타나는데..
별도로 작업한게 아니시라면 왜 쿼리가 정상적으로 만들어지지 않았는지
원인을 먼저 찾으셔야합니다.
답변을 작성하시기 전에 로그인 해주세요.