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개 / 댓글 1개
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 ..
이렇게 테이블을 지정하셔야 합니다.
답변을 작성하려면 로그인이 필요합니다.