Execute Insert/Select statement w/LLBL

Posts   
 
    
dvanzo
User
Posts: 8
Joined: 05-Sep-2008
# Posted on: 10-Jun-2010 23:48:31   

I was wondering if there's a way to execute Insert/Select statements like the one below using the LLBL clases.


insert into app.cp_acct
  (cd_acct
  ,ds_acct
  ,cd_period
  ,cd_bussiness )
select cd_acct
  ,ds_acct
  ,'2010/04'
  ,cd_bussiness 
from app.cp_acct a
where a.cd_bussiness = '001'
  and a.cd_period = '2010/04'

T.I.A.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Jun-2010 04:24:51   

In short, no. In that case is better to use an stored procedure.

David Elizondo | LLBLGen Support Team
dvanzo
User
Posts: 8
Joined: 05-Sep-2008
# Posted on: 22-Jun-2010 15:22:24   

Thanks!!!

Regards,