File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
JDBC and Relational Databases
Callable statement ...?
Joined: Mar 18, 2011
Jun 25, 2011 02:19:55
I am using a callable statement to call a procedure in my oracle database. I have to create a procedure that has to to update the emp table data which has 10 columns.
The procedure may be like this
create or replace procedure(enao in emp.empno%type,nameemp in emp.ename%type,.............) as
My doubt is if there are more number of columns in a table then i need to mention that column names in parameters .Is there any other way to do it(not metioning the in parameters)?
Joined: May 08, 2006
Jun 25, 2011 06:01:40
Is those additional columns are mandatory fields for your table?, if not you can update only the fields you wanted to update on your table using given SP.....
SCJP 1.4, SCWCD 1.4
It is sorta covered in the
JavaRanch Style Guide
subject: Callable statement ...?
Determine the Callable Statements Parameters at runtime
SQL Server 2000 Return Value
Need Expert Advice
Facing the problem while reterving the resultsets in java from named query function in hibernate
CallableStatement resultset returns only columns and no data, where data exists.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015