Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #396

Re: Client_Multi_Result F

From "Zhane" <zhane@THRWHITE.remove-dii-this>
Subject Re: Client_Multi_Result F
Message-ID <96edcb85-5838-4564-a026-77c4aefd5873@t26g2000prh.googlegroups.com> (permalink)
Newsgroups comp.lang.java.databases
References <nospam-9926B4.21002106122008@nntp.motzarell
Date 2011-04-27 15:23 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.databases
On Dec 7, 10:00 am, "John B. Matthews" <nos...@nospam.com> wrote:
> In article
> <ed1abb86-b172-4422-912a-7f500f759...@g17g2000prg.googlegroups.com>,
>
>
>
>  Zhane <zhan...@gmail.com> wrote:
> > On Dec 7, 2:23 am, "John B. Matthews" <nos...@nospam.com> wrote:
> > > In article
> > > <5ff20a9f-3622-4734-b1fd-a0682d532...@c36g2000prc.googlegroups.com>,
>
> > >  Zhane <zhan...@gmail.com> wrote:
> [...]
> > > > this is the error i get when I try to execute the procedure in
> > > > phpmyadmin
>
> > > What procedure? Should you be using prepareCall()?
>
> [please trim sigs]
>
> > I changed it to prepareCall... but it doesnt make any difference
>
> What code did you try? What result did you get?
>
> Elsewhere, you suggest that you intend to call a stored procedure:
>
> > findFoodCode = connection.prepareStatement("CALL getFoodCode(?,?)");
>
> You should use prepareCall(), set up the procedure's parameters, invoke
> execute() on the CallableStatement, and get the return value:
>
> <http://java.sun.com/javase/6/docs/api/java/sql/Connection.html>
> <http://java.sun.com/javase/6/docs/api/java/sql/CallableStatement.html>
> See also: Oracle Database JDBC Developer's Guide and Reference, Ch. 13.
>
> --
> John B. Matthews
> trashgod at gmail dot comhttp://home.roadrunner.com/~jbmatthews/

what sort of setup you mean?
I did setString( ) for both my ?

I tried e same code, but with the previously preparedstatement type to
now the callablestatement type

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.databases | Previous | Next | Find similar


Thread

Re: Client_Multi_Result F "Zhane" <zhane@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000

csiph-web