신

질문게시판 오류

질문게시판을 만들어서 쓰니깐 일케 뜹니다.

select count(*) as cnt from g4_write_03_2 where mb_id = 'admin' and wr_2 = '' and wr_is_comment = 0 and wr_datetime > adddate(curdate(), interval - day)

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 ')' at line 5

error file : /onuri1.3/bbs/write.php


빌더는 오누리빌더요;;

댓글 1개

ADDDATE(date,INTERVAL expr unit), ADDDATE(expr,days)

As of MySQL 4.1.1, the second syntax is allowed. When invoked with the days form of the second argument, MySQL treats it as an integer number of days to be added to expr.


mysql 버젼이 4.1미만인가 봅니다.
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
08-03-10 조회 1,819
08-03-10 조회 1,728
08-03-10 조회 1,503
08-03-10 조회 1,865
08-03-10 조회 1,601
08-03-10 조회 1,616
08-03-10 조회 1,713
08-03-10 조회 1,753
08-03-10 조회 1,861
08-03-10 조회 1,324
08-03-10 조회 1,659
08-03-10 조회 1,634
08-03-10 조회 1,623
08-03-10 조회 1,990
08-03-10 조회 2,047
08-03-10 조회 1,600
08-03-10 조회 3,498
08-03-10 조회 1,619
08-03-10 조회 1,622
08-03-10 조회 1,733