1,i_count out ?
2,在select count(*) into i_count from aaa where c_name:=i_name;
后加一个dbms_output.putline(i_count )
也就是加上个操作

解决方案 »

  1.   

    楼上的,还是不对呀
    i_name in aaa.c_name%type,我在OEMC中此句有错,不知错在何处
      

  2.   

    c_name:=i_name;
    -->c_name=i_name;
      

  3.   

    我就说嘛,我没听过见过in、out 的语法,也许是我不知道吧
    声明错了
    create or replace procedure count_num
    (i_name   aaa.c_name%type,
     i_count  char(4))
    as
    begin
     select count(*) into i_count from aaa where c_name:=i_name;
     dbms_output.putline(i_count );end;
      

  4.   

    楼上的,in 表示输入参数 out 表示输出参数
    to welyngj还是不正确
      

  5.   

    i_count out number(4)
    ->
    i_count out number
      

  6.   

    where c_name:=i_name;
    ->
    where c_name=i_name;