oracle
szh8715
这个作者很懒,什么都没留下…
展开
-
PL/SQL集合与记录
一 PL/SQL集合类型PL/SQL提供了以下几种集合类型:索引表,也称为关联数组,可以让我们使用数字或字符串作下标来查找元素。(这有点和其他语言中的哈希表相类似。) 索引表(关联数组)就是键值对的集合,其中键是唯一的,用于确定数组中对应的值。键可以是整数或字符串。第一次使用键来指派一个对应的值就是添加元素,而后续这样的操作就是更新元素。对于关联数组,可以使用下面的语法...原创 2011-11-09 13:52:12 · 95 阅读 · 0 评论 -
复合类型练习
一、记录类型1.显示定义declaretype t_record is record( id test.id%type, mc test.mc%type );var_record t_record;counter number default 0;beginfor row_test in (select id,mc from test) loopcoun...原创 2011-11-20 18:52:19 · 83 阅读 · 0 评论 -
dbms_stats.gather_table_stats与analyze table
原文 Analyze Statement The ANALYZE statement can be used to gather statistics for a specific table, index or cluster. The statistics can be computed exactly, or estimated based on a specific number of...原创 2012-02-17 21:41:58 · 131 阅读 · 0 评论