Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: What is the precise syntax to call stored procedure?

Re: What is the precise syntax to call stored procedure?

From: Lee Fesperman <firstsql_at_ix.netcom.com>
Date: 2000/09/20
Message-ID: <39C98310.6578@ix.netcom.com>#1/1

Joseph Weinstein wrote:
> Hi Jacob. The standard JDBC form for calling procedures is:
>
> Statement st = conn.prepareCall("{ CALL PROC1() }"); // note the () to denote zero params
> st.execute();

Interesting.

My Java 2 (jdk 1.2.2) javadocs for java.sql.CallableStatement lists the syntax as

  {[?=] call <procedure-name> [ <arg1>,<arg2>,... ]}

No parentheses at all!

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
================================================================================
* Check out new website - Database Debunking (http://www.firstsql.com/dbdebunk/)
* "The Forum Where Database Matters Are Set Straight"
Received on Wed Sep 20 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US