當前位置:編程學習大全網 - 電腦編程 - 請問如何在JAVA類中調用壹個Oracle的自定義函數?

請問如何在JAVA類中調用壹個Oracle的自定義函數?

請問如何在JAVA類中調用壹個Oracle的自定義函數?

cs = conn.prepareCall("{ ?=call goode(?,?)}");

// Register the type of the return value

cs.registerOutParameter(1, Types.NUMERIC );

// Set the value for the IN parameter

cs.setString(2,"lz");

cs.setString(3,"lz");

// Execute and retrieve the returned value

cs.execute();

int retValue = cs.getInt(1);

  • 上一篇:無錫梅村最好的廠
  • 下一篇:pdf打印機無水印
  • copyright 2024編程學習大全網