日期:2014-05-16 浏览次数:20798 次
create or replace procedure create_table as
begin
execute immediate
'create table emp2(
id number,
name varchar2(10),
salary number)'; --动态SQL为DDL语句
execute immediate 'insert into emp2
values (100,''jacky'',5600)';
execute immediate 'insert into emp2
values (101,''rose'',3000)';
execute immediate 'insert into emp2
values (102,''john'',4500)';
end create_table;