Oracle 如何定义PLSQL过程参数的长度?

Oracle 如何定义PLSQL过程参数的长度?,oracle,plsql,Oracle,Plsql,我试着使用下面的代码,但它没有编译,而是用参数值定义plsql过程,参数值在plsql中可能具有特定的长度 create or replace procedure test_proc1(tid in number(2)) is begin null; end; 您不应该在过程参数(varchar2的idem)中指定数字的大小

我试着使用下面的代码,但它没有编译,而是用参数值定义plsql过程,参数值在plsql中可能具有特定的长度

create or replace procedure test_proc1(tid in number(2))
is
  begin
  null;
end;

您不应该在过程参数(varchar2的idem)中指定数字的大小