SQL> desc memberinfo_use
Name Type Nullable Default Comments
---------------- ------------- -------- ------- --------
MEMBERID VARCHAR2(11) Y
REMARK CLOB Y
SQL> spool c:\1.txt
Started spooling to c:\1.txtSQL> select memberid,re from memberinfo_use where rownum < 2;MEMBERID REMARK
----------- ---------
00001 长期以来?SQL> spool off
Stopped spooling to c:\1.txt
Name Type Nullable Default Comments
---------------- ------------- -------- ------- --------
MEMBERID VARCHAR2(11) Y
REMARK CLOB Y
SQL> spool c:\1.txt
Started spooling to c:\1.txtSQL> select memberid,re from memberinfo_use where rownum < 2;MEMBERID REMARK
----------- ---------
00001 长期以来?SQL> spool off
Stopped spooling to c:\1.txt
解决方案 »
- Oracle中查询结果定时导出到EXCEl
- oracle 连接不上
- pl/sql到底是开发工具还是语言??
- 急求把用teradata写的一段存储过程改写为oracle的存储过程!
- 使用OCIBindByPos和OCIBindArrayOfStruct批量插入记录的问题,高手请进!!
- oracle存储过程的一道面试题
- 多表查询SQL语句?
- 什么版本的oracle能在vista下用
- 为什么数据库自带的utlsmtp.sql无法执行 报ora-00900错误
- OracleOraHom92Agent服务的启动问题
- v$nls_parameters 和 v_$nls_parameters ???
- 如何將clob cache size 設置大些?
Name Type Nullable Default Comments
---------------- ------------- -------- ------- --------
MEMBERID VARCHAR2(11) Y
REMARK CLOB Y
SQL> spool c:\1.txt
Started spooling to c:\1.txtSQL> select memberid,re from memberinfo_use where rownum < 2;MEMBERID REMARK
----------- ---------
00001 长期以来?SQL> spool off
Stopped spooling to c:\1.txt
楼上这样就可以
spool 时sqlplus 的set long 5000 -- 显示的时候应该有字数的限制吧