动态文件写入

问题描述

我有一个写到utl_file的主光标。应该根据光标所在的列将该主文件拆分为多个小文件。

-主光标-

Cursor m1 
IS
Select id,name,code,date 
from table t1 
where code like 'A%';

Begin 
log_file:=utl_file.fopen('DIR','file_name_||code||'.csv','W');
utl_file.put_line(log_file,header values);

创建文件A%,如果有10个不同的A代码,则%可以是数字或字母,然后输出应包含10个不同的文件,文件名后应附加该代码。有没有一种方法可以实现plsql过程。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...