select 到的纪录数目不等于1就会异常
你在sqlplus里面执行select health_content into out_content from dw_health_content where sequence_no=2;
看看结果集有几条
你在sqlplus里面执行select health_content into out_content from dw_health_content where sequence_no=2;
看看结果集有几条
解决方案 »
- oracle 的日期转换问题
- oracle 10g 64位 透明网关
- BLOB问题,怎么用SQL的方法写入BLOB,数据太长了,请高手解决一下。
- 关于非表Owner用户共享表索引的问题!在线等,立即给分
- AIX/Oracle9/GCC3.0 Proc程序编译问题
- 表1存放1-6月数据,表2存放7-12月数据现在想统计一年的数据
- 有用过internet directory作为LDAP服务器开发的进来看一下
- ORACLE8I DOS 中使用的命令有哪些?
- 触发器执行出错。
- 现在大家都在用ORACLE什么版本?
- 问一个比较弱的问题:在ORACLE什么是方案,为什么表都放在方案中呢?
- 请问在Oracle中,怎么样在两个表之间关联呢
可以通过select count(health_content) into count_num from dw_health_content where sequence_no=2;来判断是否有记录集,是否为空
select health_content into out_content from dw_health_content where sequence_no=2;
out_ret:=0;
exceptioin
when no_data_found then
out_ret:=1;
end;