begin
for i in 2..100 loop
execute immediate('create table table'||i||' as
select * from table1');
end loop;
end;
for i in 2..100 loop
execute immediate('create table table'||i||' as
select * from table1');
end loop;
end;
解决方案 »
- oracle 单引号 多重使用问题
- 为什么wm_concat(distinct deptno) 在过程中不能使用呢?~很奇怪,单纯的SQL中是合适的~
- 在Oracle中通过DBlink查询SQL Server数据库表
- NVL 对sql性能的影响
- oracle 10g数据库恢复出现问题 急救!!
- 怎么把xml文件导入到oracle数据中呢!~~~
- 查询重复记录可不可以这样呢?
- 数据库插入乱码,在线急待。。。谢谢!
- 问大家几个关于OMF管理Oracle日志文件的问题
- 安装oracle_client时报Oracle Net Configuration Assistant 失败的错误。
- 请进。。。
- Oracle中如何将嵌套表的信息和 主表的信息同时查询出来
spool c:\ctable.sql
select 'create table table'||rownum+1||' as select * from table1;' from all_objects
where rownum<100;
spool off;
@c:\ctable.sql