the same to normal oracle function :
select pack_name.fun_name(...) from dual;

解决方案 »

  1.   

    不好意思,是我自己沒有說清楚,那些oracle數據庫里的方法和過程都是自己寫了,不是oracle自帶的功能,
    我要調用自己的方法;例如:
    public static String getAgentCode(){
            try{
                String temp = null;
                Connection conn = null;
                CallableStatement callpl = null;
                conn = lockConn;
                callpl = conn.prepareCall("{? = call addMess.getAgentCode()}"); -----這個就是調用寫在數據里的函數
                callpl.registerOutParameter(1,Types.VARCHAR);
                callpl.execute();
                temp = callpl.getString(1);
                callpl.close();
                return temp;
            }catch(Exception e){
                e.printStackTrace();
                return null;
            }
        }
    這是其中的一種方法,還有沒有其他的方法可以達到同樣的功能?
      

  2.   


    to:jiezhi可不可以說清楚點了?謝謝!