PL / SQL:将数据类型分配给变量

时间:2013-02-26 08:39:15

标签: oracle plsql

有没有这样做?我希望它能像这样完成:

create or replace
package SOME_PACKAGE as
  filetype type is clob%type; --assign clob's filetype to a variable
end SOME_PACKAGE;
/

declare
  clb SOME_PACKAGE.filetype;
begin
  dbms_lob.writeappend(clb, 1, 's');
end;

谢谢!

1 个答案:

答案 0 :(得分:1)

你可以这样做:

create or replace
package SOME_PACKAGE as
  subtype filetype is clob; --assign clob's filetype to a variable
end SOME_PACKAGE;
/

但为什么??