Subject | Re: [ib-support] Stored Procedure |
---|---|
Author | Milan Babuskov |
Post date | 2002-12-12T18:41:05Z |
Jorez A. Nasato wrote:
all?
Do you get some error messages?
--
Milan Babuskov
http://sourceforge.net/projects/fbexport
> Hi!Can you tell us what does the script do when you run it... does it work at
>
> I need a sp that returns 1 (one) value from a table, and this value
> can't be null, I'm sending my script and if someone could help saying
> where is my mistake it will be good.
all?
Do you get some error messages?
> selectThis should return only one row, right? Why do you use order by?
> cast(ch.ch_valor as decimal(4,4))
> from
> ch
> where
> ( ch.ch_convenio = :convenio_ch ) and
> ( ch.ch_data <= :data_ch )
> order by
> ch.ch_data desc
> into :valor_ch;
--
Milan Babuskov
http://sourceforge.net/projects/fbexport