Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I want to insert variable values into a table

Albert ChaoSep 20 2021

I have tried but not able insert the values into the summary table. Please assume all the tables are created.

Declare
tot_records number(10);
records_loaded number(10);
process_start_time timestamp;
lv_count number(10);
begin
tot_records := select count(1) into lv_count from employees;
insert into department select * from employees;
records_loaded := sql%rowcount;
process_start_time := current_timestamp;
insert into summary(total,tot_loads,start_time) values(tot_records,records_loaded,process_start_time);
end;
This post has been answered by Solomon Yakobson on Sep 20 2021
Jump to Answer
Comments
Post Details
Added on Sep 20 2021
4 comments
6,616 views