|
declare
wk_emp_id char(3);
wk_dept_id char(3);
wk_name varchar2(10);
sql_stmt varchar2(256);
begin
dbms_output.enable(100000);
wk_emp_id := 'E05';
wk_dept_id := 'D05';
wk_name := 'なまえ5';
sql_stmt := 'insert into emp (emp_id,dept_id,name)
values(:emp_id, :dept_id, :name)';
execute immediate sql_stmt
using wk_emp_id,wk_dept_id,wk_name;
commit;
end;
|