insert into temp_table(acct_code, acct_name, dr_amt, cr_amt)
select acct_code, acct_name, sum(dr_amt), sum(cr_amt)
from acct11v2
where WORK_ID = ''' + Trim(dWork_Id.Text) + '''
AND SLIP_DATE BETWEEN ''' + Trim(eSlip_FR.Text) + '''
AND ''' + Trim(eSlip_TO.Text) + '''
group by acct_code, acct_name
> insert into temp_table(acct_code, acct_name, dr_amt, cr_amt)
> select acct_code, acct_name, sum(dr_amt), sum(cr_amt)
> from acct11v2
> where WORK_ID = ''' + Trim(dWork_Id.Text) + '''
> AND SLIP_DATE BETWEEN ''' + Trim(eSlip_FR.Text) + '''
> AND ''' + Trim(eSlip_TO.Text) + '''
> group by acct_code, acct_name
select한 값들을 그대로 Insert하는곤데요.
Oracle에서 이케 쓰던데요..