mysql 테이블 제외할려면

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
mysql 테이블 제외할려면

QA

mysql 테이블 제외할려면

답변 1

본문

$sql = "select wr_id, wr_subject, wr_hit from {$g5['write_prefix']}{$rowA[bo_table]} where wr_id=wr_parent and wr_is_comment=0 and wr_datetime between '{$today} 00:00:00' and '{$today} 23:59:59' order by wr_hit desc limit {$rows}"; 

 

 

tun 이라는 테이블과 tun_list라는테이블 두개 뺴고 위로 실행할려면 오떻게해야돼요 ???

이 질문에 댓글 쓰기 :

답변 1

반복문 안에 들어가있는 구문같은데 테이블 목록 꺼내오는 쿼리문에서 제외를 먼저 한다거나 

 

아래와 같이 제외할수있습니다.

 

if($rowA[bo_table] == "tun" || $rowA[bo_table] == "tun_list") continue;

$sql = "select wr_id, wr_subject, wr_hit from {$g5['write_prefix']}{$rowA[bo_table]} where wr_id=wr_parent and wr_is_comment=0 and wr_datetime between '{$today} 00:00:00' and '{$today} 23:59:59' order by wr_hit desc limit {$rows}";  

 

 

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
  • 질문이 없습니다.
전체 0
© SIRSOFT
현재 페이지 제일 처음으로