DB | 컬럼 합계구하기 및 갯수 구하기
페이지 정보
작성자 YJNet 작성일14-09-22 18:51 조회13,178회 댓글0건본문
<갯수구하기>
$result = sql_fetch(" select count(*) as cnt from $write_table where wr_is_comment='0';
echo $result['cnt'];
<합계구하기>
$result = sql_fetch(" select sum(wr_1) as hap from $write_table where wr_is_comment='0';
echo $result['hap'];
댓글목록
등록된 댓글이 없습니다.