oracle8.1.6
insert into acs_mail_lite_queue
(id,
creation_date,
locking_server,
to_addr,
cc_addr,
bcc_addr,
from_addr,
reply_to,
subject,
body,
package_id,
file_ids,
mime_type,
no_callback_p,
extraheaders,
use_sender_p
)
values
(acs_mail_lite_id_seq.nextval,
:creation_date,
:locking_server,
:to_addr,
:cc_addr,
:bcc_addr,
:from_addr,
:reply_to,
:subject,
:body,
:package_id,
:file_ids,
:mime_type,
decode(:no_callback_p,'1','t','f'),
:extraheaders,
decode(:use_sender_p,'1','t','f')
)
update acs_mail_lite_mail_log
set last_mail_date = sysdate
where party_id = :user_id
insert into acs_mail_lite_mail_log (party_id, last_mail_date)
values (:user_id, sysdate)
select
id,
creation_date,
locking_server,
to_addr,
cc_addr,
bcc_addr,
from_addr,
subject,
body,
package_id,
file_ids,
mime_type,
decode(no_callback_p,'t',1,0) as no_callback_p,
extraheaders,
decode(use_sender_p,'t',1,0) as use_sender_p
from acs_mail_lite_queue
where locking_server = '' or locking_server is NULL