Subject | Re: [firebird-support] sql question |
---|---|
Author | Milan Babuskov |
Post date | 2004-01-21T15:41:16Z |
Henrik Sitter wrote:
It should work the same without CAST().
--
Milan Babuskov
http://fbexport.sourceforge.net
> I tried the following at it seems to do the trick:Here the Firebird did the conversion for you automatically.
>
> if (exists(select 1 TABLENAME, COLUMNNAME, cast(COLUMNVALUE as Integer)
> from USED_TABLE
> where ((TABLENAME = 'ARTNR_SW_TABELL') and (COLUMNNAME =
> 'SW_ARTNR') and (COLUMNVALUE = :IN_SW_ARTNR)) )) then
> begin
> .
> .
> end
It should work the same without CAST().
--
Milan Babuskov
http://fbexport.sourceforge.net