2
I have this message while trying to execute a Stored Procedure created on the Oracle:
java.sql.Sqlsyntaxerrorexception: ORA-00928: SELECT keyword not found
at oracle.jdbc.driver.T4cttioer.processError(T4cttioer.java:447) at oracle.jdbc.driver.T4cttioer.processError(T4cttioer.java:396) at oracle.jdbc.driver.T4c8oall.processError(T4c8oall.java:951) at oracle.jdbc.driver.T4cttifun.receive(T4cttifun.java:513) at oracle.jdbc.driver.T4cttifun.doRPC(T4cttifun.java:227) at oracle.jdbc.driver.T4c8oall.doOLL(T4c8oall.java:531) at oracle.jdbc.driver.T4ccallablestatement.doOall8(T4ccallablestatement.java:205) at oracle.jdbc.driver.T4ccallablestatement.executeForRows(T4ccallablestatement.java:1043) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Oraclestatement.java:1336) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(Oraclepreparedstatement.java:3613) at oracle.jdbc.driver.OraclePreparedStatement.execute(Oraclepreparedstatement.java:3714) at oracle.jdbc.driver.OracleCallableStatement.execute(Oraclecallablestatement.java:4755) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(Oraclepreparedstatementwrapper.java:1378) at unidade3.ClienteApp.inserirSP(Customersapp.java:71) at 3.ClienteApp.main(Clienteapp.java:192)
create or replace PROCEDURE SP_INSERIRCLIENTE
(
CPF IN INTEGER
, NOME IN VARCHAR2
, EMAIL IN VARCHAR2
) AS
BEGIN
INSERT INTO CLIENTE VALUES(CPF, NOME, EMAIL);
END SP_INSERIRCLIENTE;
I made the change, but when I withdraw the "as" compile error occurs.
– Flávio