desc tbname
select * from col;可以对文件进行操作,使用dbms_file包,关于dbms_file包,查看oracle文档
select * from col;可以对文件进行操作,使用dbms_file包,关于dbms_file包,查看oracle文档
解决方案 »
- 数据库连接方式的选择
- org.hibernate.QueryException: in expected错误
- 怎么让空值实现和sql server一样的效果
- 使用ADO操作ORACLE内存爆长
- sqlserver数据库中的数据导入到oracle数据库
- 如何把一个表的多个字段合并起来.
- 大家来说说数据库操作中的悲惨辛酸史,谁最惨的就奖励20分:)~~~
- oracle 922错误 ,imp的时候出错,求问解决方法
- 这句SQL语句不会写了,各位帮忙
- 菜鸟求教各位大侠一条SQL语句!(对前后记录进行数学计算)
- 高分相送!如何用ASP取得存在BLOB字段中的图片,最好提供源码。
- Oracle安装成功以后,TNSListener服务无法启动。
declare
file_handle UTL_FILE.FILE_TYPE;
begin
file_handle := UTL_FILE.FOPEN('/tmp', '文件名', 'w');
UTL_FILE.PUTF(file_handle, '写入的信息\n');
UTL_FILE.FCLOSE(file_handle);
exception
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: Invalid path for file or path not in INIT.ORA.');
end; PutF()过程用来以指定格式把文本写入一个文件Put_Line()过程把一个指定的字符串写入文件并在文件中开始新的一行
Subprogram Description
FOPEN function Opens a file for input or output with the default line size.
IS_OPEN function Determines if a file handle refers to an open file.
FCLOSE procedure Closes a file.
FCLOSE_ALL procedure Closes all open file handles.
GET_LINE procedure Reads a line of text from an open file.
PUT procedure Writes a line to a file. This does not append a line terminator.
NEW_LINE procedure Writes one or more OS-specific line terminators to a file.
PUT_LINE procedure Writes a line to a file. This appends an OS-specific line terminator.
PUTF procedure A PUT procedure with formatting.
FFLUSH procedure Physically writes all pending output to a file.
FOPEN function Opens a file with the maximum line size specified.
出现目录路径无效的错误
什么道理啊?
谢谢大家
然后再打开数据库,这是重新执行这个过程。