Q&A

  • 이런 INSERT문 보셨나요?
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

1  COMMENTS
  • Profile
    이영도 2001.01.20 02:26
    주야 wrote:

    > 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에서 이케 쓰던데요..