에러 관련 하나 더 질문드립니다..

· 2011-10-25 (화) 12:00:28 · 1058 · 2
게시판에 내글이랑 내 댓글 누르면 이런 에러가 뜨는데 왜 그런걸까요..

답변 부탁드려요..ㅠㅠ

select distinct wr_parent from g4_write_info 1 where (( mb_id = 'admin' ) ) and wr_is_comment = '0' and (wr_num between '' and '10000')

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 '1 where (( mb_id = 'admin' ) ) and wr_is_comment = '0' and (wr_num between '' ' at line 1

error file : /main/bbs/board.php
|

댓글 2개

select distinct wr_parent from g4_write_info where mb_id = 'admin' and wr_is_comment = '0' and ( wr_num between '' and '10000')
이 sql로 해보세요!
2011-10-25 (화) 13:40:43
답변 감사합니다.
그런데 답변 처럼 어디쪽을 고쳐야 하는건가요..?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-10-25 조회 1,107
11-10-25 조회 1,059
11-10-25 조회 1,643
11-10-25 조회 1,671
11-10-25 조회 932
11-10-25 조회 1,625
11-10-25 조회 1,678
11-10-25 조회 915
11-10-25 조회 1,081
11-10-25 조회 872
11-10-25 조회 965
11-10-25 조회 926
11-10-24 조회 1,280
11-10-24 조회 1,609
11-10-24 조회 1,888
11-10-24 조회 1,067
11-10-24 조회 1,051
11-10-24 조회 851
11-10-24 조회 971
11-10-24 조회 1,068