声明以下:bran_code 是一个表的名称,这个表下面有一个字段叫:bran_code

解决方案 »

  1.   

    具体的在plsql-command 中执行我也不清楚,但可以通过其test运行一下就知道没错了!
    在plsql-command 可能需要一些参数什么的!
      

  2.   

    declare
    aa varchar2(100);
    begin
     test_td(aa);
    end;
      

  3.   

    create or replace procedure test_td(Name_str out circuit.circuit_no%type) is
    str circuit.circuit_no%type;
    begin
        select circuit_no into str from circuit where circuit_id='3150';
        name_str:=str;
        DBMS_OUTPUT.Put_Line(str); 
    end test_td;
      

  4.   

    你的参数有问题。
    %TYPE必须用于变量,列,字段或属性。
      

  5.   

    你的调用方法有问题,应该先申明参数,因为你的存储过程是有参数的,但你调用的时候没有。declare aa bran_code.bran_code%type;
    begin
    zwx(aa);
    end;
    /