Subject | Re: [ib-support] New to Stored Procedures |
---|---|
Author | Helen Borrie |
Post date | 2001-07-04T02:36:06Z |
At 12:23 PM 04-07-01 +1000, I wrote:
H.
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>CREATE PROCEDURE ROUND_NORMAL...assuming that, while cycling through the entire table and massaging the value of BETRAG for every row, somewhere inside that FOR loop you are going to do something with B?
>RETURNS(B DOUBLE PRECISION)
>AS
>BEGIN
> FOR SELECT BETRAG
> FROM BETRAEGE
> INTO :B
> DO BEGIN
> B=(B/100+0.5)*100;
> END
> /* EXIT; */
> END
H.
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________