반복되는것 간단하게 하고자합니다.

반복되는것 간단하게 하고자합니다.

QA

반복되는것 간단하게 하고자합니다.

답변 2

본문

안녕하세요.

어찌저찌 짜집기로 수정중인데 반복되는게 길어지니 수정하거나 추가할때 여간 손이가는게 아니라서 간단하게 줄이려면 아래것을 어떻게 해야할지요?

 

$sql  = " select sum(wr_a1) as wr_a1_danga ";
$sql  .= " , sum(wr_a2) as wr_a2_danga ";
$sql  .= " , sum(wr_a3) as wr_a3_danga ";
$sql  .= " , sum(wr_a4) as wr_a4_danga ";
$sql  .= " , sum(wr_a5) as wr_a5_danga ";
$sql  .= " , sum(wr_a6) as wr_a6_danga ";
$sql  .= " , sum(wr_a7) as wr_a7_danga ";
$sql  .= " , sum(wr_a8) as wr_a8_danga ";
$sql  .= " , sum(wr_a9) as wr_a9_danga ";
$sql  .= " , sum(wr_a10) as wr_a10_danga ";
$sql  .= " , sum(wr_a11) as wr_a11_danga ";
$sql  .= " , sum(wr_a12) as wr_a12_danga ";
$sql  .= " , sum(wr_a13) as wr_a13_danga ";
$sql  .= " , sum(wr_a14) as wr_a14_danga ";
$sql  .= " , sum(wr_a15) as wr_a15_danga ";
$sql  .= " , sum(wr_a16) as wr_a16_danga ";
$sql  .= " , sum(wr_a17) as wr_a17_danga ";
$sql  .= " , sum(wr_a18) as wr_a18_danga ";
$sql  .= " , sum(wr_a19) as wr_a19_danga ";
$sql  .= " , sum(wr_a20) as wr_a20_danga ";

이 질문에 댓글 쓰기 :

답변 2

답변을 작성하시기 전에 로그인 해주세요.
전체 2
© SIRSOFT
현재 페이지 제일 처음으로