미채택 완료

이게 무슨 말이죠?

2015-05-07 (목) 15:59:00 4,229

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개

error file : /bbs/board.php

라고 오류파일정보가 나타나는데..

별도로 작업한게 아니시라면 왜 쿼리가 정상적으로 만들어지지 않았는지

원인을 먼저 찾으셔야합니다.

​

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 ..

이렇게 테이블을 지정하셔야 합니다.

​

답변에 대한 댓글 1개

2015-05-07 (목) 16:18:07
어디서 해야하나요?
2015-05-07 (목) 16:00:15

​select * from where

여기서 테이블명이 빠졌네요

select * from 테이블명 where  

답변을 작성하려면 로그인이 필요합니다.