Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC question: Execute procedure with plain SQL?
Joe,
> Hi all.
> I know that PreparedStatements are the correct means for executing a
> stored procedure,
> but in my current case I am limited to a plain Statement object. Is
> there a SQL string that
> would allow a plain statement to execute a simple non-parameterized
> procedure? Eg:
>
> Statement s = con.createStatement();
> s.execute("execute myProcedureName" );
>
try:
Statement s = con.createStatement();
s.execute("BEGIN myProcedureName; END;");
Off the top of my head have no idea if this will work - we normally use CallableStatements.
As a *truly desperate hack* you could always:
David Rolfe
Orinda Software
Dublin, Ireland
www.orindasoft.com Received on Tue Mar 29 2005 - 11:44:29 CST
![]() |
![]() |