PLSQL collection 示例 之 Nested Tables
来源:互联网 发布:深圳网络诈骗被骗5万 编辑:程序博客网 时间:2024/06/06 12:51
A nested table is like a one-dimensional array.An array has a declared number of elements, but a nested table does not. The size of a nested table can increase dynamically.
删数据,其他element的下标不变
DECLARE
TYPE name_table IS TABLE OF VARCHAR2(10);
TYPE score_table IS TABLE OF INTEGER;
names name_table;
scores score_table;
total integer;
BEGIN
names := name_table(‘Kavita’, ‘Pritam’, ‘Ayan’, ‘Rishav’, ‘Aziz’);
scores:= score_table(98, 97, 78, 87, 92);
total := names.count;
dbms_output.put_line(‘Total ‘|| total || ’ Students’);
FOR i IN 1 .. total LOOP
dbms_output.put_line(‘Student:’||names(i)||’, Scores:’ || scores(i));
end loop;
END;
0 0
- PLSQL collection 示例 之 Nested Tables
- PLSQL collection 示例 之 Nested Tables
- PLSQL collection 示例 之 varray
- PLSQL collection 示例 之 varray
- PLSQL collection 示例 之 varray
- PLSQL collection 示例 之 varray
- PLSQL collection 示例 之 index-by table
- PLSQL collection 示例 之 index-by table
- Filling nested internal tables
- PLSQL Collection
- PL/SQL Collections (Nested Tables)
- PLSQL Collection Sort
- PLSQL Collection Check Existence
- Oracle/PLSQL: Oracle System Tables
- PLSQL Table Collection Cursor Variable
- Inner Class,Nested Class HashMap Collection Collections
- plsql tables 里面不显示表格
- plsql连oracle11g,expert tables一闪而过
- 面试笔试中的排序问题
- 指针类型强制转换
- 动态写css
- 来看看个
- background-position百分比的问题
- PLSQL collection 示例 之 Nested Tables
- VS2008配置opencv
- android camera(四):camera 驱动 GT2005
- java【工具类】汉字转拼音,
- android 常见问题
- python笔记8--python网络编程
- 真机测试时的错误:No matching provisioning profiles found
- WPF GroupBox样式( 设置窗口样式 设置 ResizeGrip )
- Android 按两次返回键退出