我想使用Java代碼執行PL/SQL過程。到目前爲止,我已經試過這樣:使用Java代碼執行PL/SQL過程
Statement myStmt = null;
myStmt = conn.createStatement();
myStmt.executeQuery("EXECUTE ProjetIRSTEA.detectionX");
我也得到了以下錯誤消息:
java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement