在过程中select是要into的
游标中select不用into

解决方案 »

  1.   

    如果過程中有游標參數,怎麼測試呢?我用的是pl/sql developer...
      

  2.   

    I guess you are used to be writing SQL Server procedure . Oracle Procedure is different , you must use into clause to handle all the result from select statement .
      

  3.   

    那我是只要返回一個字段就要into???
    select field_a into aaa,field_b into bbb,field_c into ccc
    是這樣的嗎?
      

  4.   

      分为显示游标和隐式游标,如果直接用select实际上就是用了隐式游标,隐式游标只能允许返回一行数据,并且必须使用into语句。显示式游标则不能用into了。。
      

  5.   


      into的字段名列表必须要和select中的字段名列表的数量,类型,顺序相同。不过有的字段可以隐式转换的。