Article View: borland.public.interbase.sql
Article #279@Jan Henrik
From: Helmut W�ss
Date: Mon, 18 Mar 2002 16:20
Date: Mon, 18 Mar 2002 16:20
52 lines
2422 bytes
2422 bytes
Hi Jan,
do i really need a suspend in this case ? I thought it is only necessary
if i have a resultset and use
myProc.Open;
but here the result comes back in an output parameter, so i use
myProc.ExecProc;
and get the result with myProc.ParamByName('aValue).AsInteger;
or am i wrong?
bye,
helmut
"Jan Henrik Sylvester" <me@janh.de> schrieb im Newsbeitrag
news:3c94ceb1_1@dnews...
> "Helmut W�ss" <h.woess@iis-edv.at> schrieb im Newsbeitrag
> news:3c944d23$1_1@dnews...
> > you forgot to put the result into the ouput variable!
> > must be:
> > SELECT count(*) FROM Banners into :a_value;
> >
> > bye,
> > helmut
> >
> > "Ryan Born" <ryanborn@uiuc.edu> schrieb im Newsbeitrag
> > news:3c93cc5f$1_2@dnews...
> > > After an accidental post on my last one, here is my real problem!
> > >
> > > I have this Attempt to create a SP, but it won't work.
> > > ------------------------------------------------------------
> > > SET TERM !!;
> > >
> > > CREATE PROCEDURE my_procedure
> > > RETURNS (a_value INTEGER)
> > > AS
> > > BEGIN
> > >
> > > SELECT count(*) FROM Banners;
> > >
> > > END !!
> > >
> > > SET TERM ;!!
>
> In addition to Helmut W�ss reply, don't forget the "SUSPEND;" if you want
> any return value...
>
> HTH,
> Jan Henrik Sylvester <me@janh.de>
>
>
>
Technical Details
Message-ID:
<3c9613ab$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsrouter.icnc.com!uunet!sac.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3c93cc5f$1_2@dnews> <3c944d23$1_1@dnews> <3c94ceb1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fd38c,3f0dbf6d00b0f337 X-Google-Attributes: gidfd38c,public X-Google-Thread: 114a0e,3f0dbf6d00b0f337 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-03-18 08:23:15 PST From: "Helmut W�ss" <h.woess@iis-edv.at> Newsgroups: borland.public.interbase.sql,borland.public.interbase.general References: <3c93cc5f$1_2@dnews> <3c944d23$1_1@dnews> <3c94ceb1_1@dnews> Subject: @Jan Henrik Date: Mon, 18 Mar 2002 17:20:28 +0100 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.46.232.216 Message-ID: <3c9613ab$1_1@dnews> X-Trace: dnews 1016468395 62.46.232.216 (18 Mar 2002 08:19:55 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsrouter.icnc.com!uunet!sac.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews