declare
vtem yourtable%rowtype;
cursor curtem is
select * from yourtable;
begin
open curtem;
loop
fetch curtem into vtem;--这里的vtem就是一条条的记录了。
exit when curtem%notfound;
end loop;
close curtem;
end;
vtem yourtable%rowtype;
cursor curtem is
select * from yourtable;
begin
open curtem;
loop
fetch curtem into vtem;--这里的vtem就是一条条的记录了。
exit when curtem%notfound;
end loop;
close curtem;
end;
解决方案 »
- user_segments和user_tables的区别?
- Oracle ORA-01461 :仅可以为插入LONG列的LONG值赋值
- 怎么解决,重复数据合并到结果集的某一条记录中
- SELECT CITYCODE into d_qsd FROM XCSDM where citytel=p_qsd;如果查不出记录赋给d_qsd 程序就会报错,怎么进行错误处理?
- 在ORACLE数据库中这样的SQL语句怎么写?
- ******吐血请教倒数据库的问题*******
- 关于pl/sql语言中字符串相加的一个简单问题
- win2003下装9I,装好后,自己建库前要做那些工作?那里有这方面的资料啊
- 各位大虾,刚装的oracle出现ORA-01078错误怎么办?
- 急求高手:关于jsp+servlet+ejb开发的
- 求substr的用法
- 一个关于排序的问题,急用!~~~~谢谢
select yourfield into yourarray from yourtable 直接这样使用呢。