比如,PL/SQL developer里,要传递参数,需要这样写select &a from dual有没有地方设置,让它变为select :a from dual跟Toad一样?

解决方案 »

  1.   

    可以,用set define :scott@ORA11GR2> select &a from dual;
    Enter value for a: 1
    old   1: select &a from dual
    new   1: select 1 from dual         1
    ----------
             1scott@ORA11GR2> set define :
    scott@ORA11GR2> select :a from dual;
    Enter value for a: 1
    old   1: select :a from dual
    new   1: select 1 from dual         1
    ----------
             1
      

  2.   


    你这个只在Command Window有用啊SQL Window该如何做呢?