oracle存储过程中如何输出变量的值? oracle存储过程中如何输出变量的值?我写的一个存储过程老是出错,我想看看其中几个变量的值,怎么看?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 first:set serveroutput onsecond:in the procedure ,add the pl/sql statement:dbms_output.put_line(variable name) 存储过程test的时候 set serveroutput on 是没用的吧?在test的时候,有个dbms的tab页是用来接收dbms的输出的 before creating the procedure,execute:set serveroutput on in the sqlplus 存储过程执行有错误:“ORA-01403: 未找到数据”。是不是要等到完全执行完成以后才会把数据显示出来?执行到一半发生错误就什么结果都没有? 原因很清楚了,无返回值啊,毛病肯定出在select .. into ..这了,把into去了,把select放到sqlplus里执行下就0了 两种办法1.dbms_output.put_line(变量);2.设置个输出参数,将变量赋给这个输出参数。 thxfollow your stepssuccess! 他妈的 楼主是问,这个输出语句dbms_output.put_line(variable name)是写在哪里?是写在存储过程里面,还是在test的时候写!!一群白痴! 如何计算天数?写个select语句 如何在批处理中 执行 存储过程? 求助:一个SQL语句的问题(在线等。。。) delphi读取Oracle 的 Char类型 时如何去除多余的空格问题``` Oracle参数类型和C#类型问题【在线等!!】 多表的查询的问题~~~~~ 数据库恢复问题。 请教:change archivelog all validate的作用以及含义 创建一个用户后怎么在VB.NET里可以选择和更新表? Oracle里面有没有管理BLOB对象的工具? 请教Oracle 11g安装时主目录的不兼容性问题 语句转换
set serveroutput onsecond:
in the procedure ,add the pl/sql statement:dbms_output.put_line(variable name)
在test的时候,有个dbms的tab页是用来接收dbms的输出的
set serveroutput on
in the sqlplus
是不是要等到完全执行完成以后才会把数据显示出来?执行到一半发生错误就什么结果都没有?
1.dbms_output.put_line(变量);
2.设置个输出参数,将变量赋给这个输出参数。
是写在存储过程里面,还是在test的时候写!!
一群白痴!