2008-07-02

存储过程经验积累2:各种变量定义

关键字: 数据库
1.常用类型:
number  数字型(包括小数)    char(n)  varchar2(n)  字符型
boolean 布尔型
2.定义与表相关:
tableA.columnA%type;    字段类型相同
tableA%rowtype;

3.包头部分定义:
定义集合
TYPE dt_deduct_fund is RECORD(
    invest_id t_contract_invest.invest_id%TYPE,
    fund_type t_contract_invest.fund_type%type,
    fund_code t_fund.fund_code%TYPE,
    money_id t_money.money_id%TYPE);

定义多条集合
TYPE dt_deduct_fund_list is TABLE OF dt_deduct_fund INDEX BY BINARY_INTEGER;
评论
发表评论

您还没有登录,请登录后发表评论

eboge
搜索本博客
最近加入圈子
最新评论