This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
I have some serious doubts in CallableStatement.execute().
As per the documentation execute() method of CallableStatement will return true if very first result coming back from procdure
is java.lang.resultset.So if the execute() caused an update first, and then fired a query, then execute() will return false.
But in my procedure i m having two result set i.e two select queries and when i do CallableStatement.execute() from the program
i am getting false in return all the time
1)Why CallableStatement.execute() method reurning false.
2)Also CallableStatement.getResultSet() method returns null.
Following is the porcedure and java code.
i m using oracle 8i and procedure is working fine on editor.
Also the java program is working fine.
but i want process the results from procedure by using resultset.
create or replace procedure procedure_1(v_name OUT MEMPLOYEE.ENAME%type,v_dname OUT MDEPT.DNAME%type)
select ENAME into v_name
select DNAME into v_dname
dbms_output.put_line(v_name ||' '|| v_dname);