create or replace procedure prc_bcktable
as
begin
execute immediate 'crete table table_201202 select * from table where datetime >=''201301''';
--log...
exception
when others then
dbms_output.put_line(sqlcode ------解决方案-------------------- sqlerrm);
--记录失败日志...
end;