db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sivagururaja <sivagurur...@gmail.com>
Subject Re: Derby Stored Procedure Help!
Date Tue, 14 Apr 2009 14:00:36 GMT


I need one more help. Here is my code,

String str="insert into sam.Stud values(1,'Sivagururaja')";
Statement st=con.createStatement();
int PatientRowsUpdated = st.executeUpdate(str);
     System.out.println('Inserted Successfully');

Using the above code, i know whether the record is getting inserted or not.
Now i'm going to use the stored procedure. Is it possible to check whether
the record 
is inserted or not. If yes, Can you please tell me, where should i write the
Should i use one OUT parameter for the status or it can be achieved through
my java method something 
like the above.

Thanks in advance.
View this message in context: http://www.nabble.com/Derby-Stored-Procedure-Help%21-tp23021611p23039989.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message