ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 我的RECORD学习2

我的RECORD学习2

原创 Linux操作系统 作者:shuiyu131 时间:2009-12-30 18:48:17 0 删除 编辑
set echo off
set serveroutput on
declare
 type a1_record_type is record
  (a11 number,
   a12 number);
 type a2_record_type is record
  (a21    number,
   a1 a1_record_type);
 b1 a1_record_type;
 b2 a2_record_type;
begin
 b1.a11 := 100;
 b1.a12 := 200;
 dbms_output.put_line(to_char(b1.a11)||'...'||to_char(b1.a12));
 b2.a21 := 300;
 b2.a1.a11 := 400;
 b2.a1.a12 := 500;
 dbms_output.put_line(to_char(b2.a21)||'...'||to_char(b2.a1.a11)||'...'||to_char(b2.a1.a12));
end;
/
set serveroutput off
set echo on

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13941341/viewspace-624018/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 我的RECORD学习
请登录后发表评论 登录
全部评论

注册时间:2008-09-08

  • 博文量
    14
  • 访问量
    13955