PLSQL_数据结构类型的解析(概念)
2014-06-02 Created By BaoXinjian
1. 字段
2. 记录
3. 集合
4. 游标
5. 其他
1. 字段
(1). 标准字段
l_wip_entity_id NUMBER;
(2). 基于表字段
l_wip_entity_id wip_entities.wip_entity_id%TYPE;
2. 记录
(1). 标准记录
TYPE r_type_wip_entity ISRECORD(
wip_entity_id wip_entities.wip_entity_id%TYPE,
wip_entity_name wip_entities.wip_entity_name%TYPE
);
r_wip_entity r_type_wip_entity;
(2). 基于表记录
r_wip_entity wip_entities%ROWTYPE;
3. 集合
(1). 标准集合
TYPE r_type_wip_entity ISRECORD(
wip_entity_id wip_entities.wip_entity_id%TYPE,
wip_entity_name wip_entities.wip_entity_name%TYPE
);
r_wip_entity r_type_wip_entity;
TYPE c_wip_entity IS TABLE OF r_wip_entity INDEX BY BINARY_INTEGER;
(2). 基于表集合
TYPE c_wip_entity ISTABLEOF wip_entities%ROWTYPEINDEXBYBINARY_INTEGER;
(3). 集合的操作
Count / First / Last / Prior /Next / Extend /Delete
4. 游标
(1). 标准游标
CURSOR c_wip_entity
IS
SELECT wip_entity_id, wip_entity_name
FROM wip_entities;
(2). 其他方式定义
TYPE c_type_wip_entity ISREFCURSOR;
c_wip_entity c_type_wip_entity;
5. 其他
(1). rowid和rownum
(2). BLOD和CLOB
Thanks and Regards
最新文章
- java.IO输入输出流:过滤流:buffer流和data流
- Linux iptables 防火墙
- MyBatis传入参数为集合、数组SQL写法
- jquery combobox
- Android开发--Layout元素
- AngularJS快速入门指南10:DOM节点
- MySQL学习笔记01-MYSQL安装
- POJ 2226 Muddy Fields (最小点覆盖集,对比POJ 3041)
- 远程连接postgres,出现server doesnt listen
- TestNG传参的几种方式
- javadoc注释规范
- Linux下多线程查看工具(pstree、ps、pstack) (转)
- leetcode第15题--3Sum
- 用Bottle开发web程序(二)
- screen 链接远程桌面
- JavaScriptCore全面解析 (下篇)
- ssh环境的搭建,基于注解和配置文件使用
- 详解 HTTPS 移动端对称加密套件优
- tvtk管线技术、数据集与数据加载
- Java8-对map过滤
热门文章
- Android循环ViewPager(二)
- Android之属性动画(二)
- python中的exec()、eval()以及complie()
- 对SingleTask和TaskAffinity的理解
- Mac下Sublime Text 总是以新窗口打开文件的解决办法
- Discuz常见小问题-网站如何备份和恢复
- JDK5.0 特性 监控与管理虚拟机
- sonarqube 指定jdk
- Stage3d 由浅到深理解AGAL的管线vertex shader和fragment shader || 简易教程 学习心得 AGAL 非常非常好的入门文章
- 【Oracle】查询字段的长度、类型、精度、注释等信息