질문게시판 오류

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

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 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,443
17년 전 조회 1,811
17년 전 조회 1,536
17년 전 조회 1,556
17년 전 조회 1,660
17년 전 조회 1,702
17년 전 조회 1,807
17년 전 조회 1,273
17년 전 조회 1,612
17년 전 조회 1,586
17년 전 조회 1,572
17년 전 조회 1,932
17년 전 조회 1,989
17년 전 조회 1,548
17년 전 조회 3,433
17년 전 조회 1,566
17년 전 조회 1,562
17년 전 조회 1,686
17년 전 조회 1,536
17년 전 조회 1,651