This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Callable statement ...? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Callable statement ...?" Watch "Callable statement ...?" New topic
Author

Callable statement ...?

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 233

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
begin
-----
------
------
end;

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)?
Arun Chidam
Ranch Hand

Joined: May 08, 2006
Posts: 79
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Callable statement ...?
 
Similar Threads
Need Expert Advice
CallableStatement resultset returns only columns and no data, where data exists.
Facing the problem while reterving the resultsets in java from named query function in hibernate
SQL Server 2000 Return Value
Determine the Callable Statements Parameters at runtime