如下语句独立执行时没有任何问题例如:
select decode(select count(c1) from table2 where table2.id=table1.id,'1','true','false') from table1但当将此语句放入到存储过程中的时候就出现了编译误会了,不知道是为什么,请各位指教
select decode(select count(c1) from table2 where table2.id=table1.id,'1','true','false') from table1但当将此语句放入到存储过程中的时候就出现了编译误会了,不知道是为什么,请各位指教
解决方案 »
- 求 Oracle+11g权威指南(第2版)下载地址
- 求教,ORACLE高手存储过程返回记录集
- oracle 扩展优化器问题
- 寻求Oracle高手解决Oracle ORA-06502
- 游标中用到动态sql语句请问该怎么写?
- 在OMS中登录数据库提示错误?
- 还是一个难的问题!! 第一次用 Oracle 斑竹请进!! where iN('ddd') 没有记录!该怎么写!
- 一个简单的问题,100高分在线等*********分不够在加!!
- 在Unix如何启动db studio等数据库管理配置界面?
- 求助一个sql语句查询的问题。
- 这句话为什么 会说a.ORDERBY是无效标识符啊?
- 修改oracle字符集,database character
-----------------------------
select decode(
(
select count(0)
from student_temp t2,student t1
where t2.sno = t1.sno
)
, 1,'true','false') from dual
select decode(count(B.c1),'1','true','false') from table1 A,table2 B where A.id=B.id