oracle bulk collect for in
2013-12-10 21:12
274 查看
declare
--定义表类型
type g_table is table of GPRS270_201311%rowtype index by pls_integer;
--声明数组
g_datas g_table;
begin
--批量查询
select * bulk collect into g_datas from GPRS270_201311;
--数组大小
dbms_output.put_line(g_datas.count);
--循环输出
for i in 1 .. g_datas.count loop
dbms_output.put_line(g_datas(i).telnum);
end loop;
end;
--定义表类型
type g_table is table of GPRS270_201311%rowtype index by pls_integer;
--声明数组
g_datas g_table;
begin
--批量查询
select * bulk collect into g_datas from GPRS270_201311;
--数组大小
dbms_output.put_line(g_datas.count);
--循环输出
for i in 1 .. g_datas.count loop
dbms_output.put_line(g_datas(i).telnum);
end loop;
end;
相关文章推荐
- 再收藏一篇: oracle批量绑定 forall bulk collect用法以及测试案例
- oracle批量绑定 forall bulk collect用法以及测试案例
- oracle批量绑定 forall bulk collect用法以及测试案例
- oracle批量绑定 forall bulk collect用法以及测试案例
- 转:Oracle 10g批量绑定forall bulk collect
- Oracle 中使用 fetch bulk collect into 批量效率的读取
- ORACLE批量绑定FORALL与BULK COLLECT
- oracle常用的复合数据类型 : BULK COLLECT(成批聚合类型)和数组集合type类型is table of 表%rowtype index by binary_integer
- ORACLE PL/SQL开发--bulk collect的用法
- Database Performance: How to reduce "library cache: mutex X" waits for scalability in the Oracle dat
- bulk collect forall等批量更新优化方法比对【视频】
- Oracle 中使用 fetch bulk collect into 批量效率的读取游标数据
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
- Oracle 批绑定(batch bind)FORALL, BULK COLLECT
- [转]UTF-8 encoding support for the BCP utility and BULK INSERT Transact-SQL command in SQL Server 2014 SP2
- Examples For When-Validate-Item trigger In Oracle Forms
- 如何用udev for asm in oracle linux 6
- Oracle 中使用 fetch bulk collect into 批量效率的读取游标数据
- Oracle中的Bulk Collect
- (转)Methods for Using Java in ORACLE