在存储过程中作为参数是不带长度的

解决方案 »

  1.   

    我就没看懂你的过程想实现什么功能.
      

  2.   

    create or replace procedure pro3 as
    mm varchar2(200);
    cursor cub  is
    select 模式 from 选课设定模式表 where 模式 = '10001';
    begin
    mm:= '111111';
    open cub;
    if cub %found  then
    mm:= '11';
    end if;
    close cub;
    end;声明变量的时候VARCHAR2要加长度说明。
    建立过程的语法为
    create or replace procedure p_name as....
    begin
    ...
    end;