Hard to Get

--人生在世 难得二字

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

Declare a record for the cursor with %ROWTYPE attribute.
Automatically takes on structure of SELECT column list.
Don’t have to declare individual variables and you only reference the ones you use.
Reference with dot notation.
Use Cursor Records to minimize typing and defer addressing details, such as the particular fields needed to perform computations.

 1DECLARE
 2      CURSOR company_cur IS  ;
 3      company_rec company_cur%ROWTYPE;
 4   BEGIN
 5     OPEN company_cur;
 6     FETCH company_cur INTO company_rec;
 7     IF company_rec.short_nm = 'ACME'
 8     THEN
 9        
10     END IF;
11
posted on 2005-08-30 17:42  Del  阅读(97)  评论(0)    收藏  举报