1.
select servid into aa from tablea a where a.id='111';
aa查出来是'222'select * from tableb b where b.id=aa; --执行报错,是哪里出了错
select * from tableb b where b.id=‘222’;--执行成功2.若存储过程最后返回的是个结果集,该如何实现
select a.id,a.name from tablea where a.id=''
id,name结果是多条记录
select servid into aa from tablea a where a.id='111';
aa查出来是'222'select * from tableb b where b.id=aa; --执行报错,是哪里出了错
select * from tableb b where b.id=‘222’;--执行成功2.若存储过程最后返回的是个结果集,该如何实现
select a.id,a.name from tablea where a.id=''
id,name结果是多条记录
解决方案 »
- 【100分】c#连接Oracle,我在本地装了客户端,TNS:could not resolve the connect identifi
- 关于ORACLE和MS SQL Server数据交换的问题
- Oracle 写文件总是出错
- rownum和distinct一并使用
- 帮忙解决这个问题
- access数据导入到oracle中后不能在sqlplus中查看的问题
- oracle在win2003Server上的安装问题
- 创建触发器为何总是报“Warning: Trigger created with compilation errors”
- ORACLE中的主机字符串真讨厌, 不知道干什么用的!
- navicat for oracle 连接间断
- ORACLE表空间移动的相关问题
- SI object browser 管理oracle 数据库
declare
--类型定义
cursor c_job
is
select empno,ename,job,sal
from emp
where job='MANAGER';
--定义一个游标变量v_cinfo c_emp%ROWTYPE ,该类型为游标c_emp中的一行数据类型
c_row c_job%rowtype;
begin
for c_row in c_job loop
dbms_output.put_line(c_row.empno||'-'||c_row.ename||'-'||c_row.job||'-'||c_row.sal);
end loop;
end;