게시판의 이달의 게시글 개수를 얻기 위한 sql문의 궁금합니다.
본문
게시판의 테이블명 : g5_write_formFaq
그달의 게시글의 총개수를 얻고자 합니다.
$query = ' SELECT * FROM `g5_write_formQnA` where `wr_datetime` 여기를 어떻게 해야하는지.... ';
알려주심 감사하겠습니다~~~
답변 2
SELECT count(*) as cnt FROM `g5_write_formQnA` where wr_is_comment=0 and month(wr_datetime) = month(now());
select count(*) as cnt from g5_wriwte_formQnA where month(w_datetime)=month(now());
$row['cnt']
답변을 작성하시기 전에 로그인 해주세요.