Subject | Re: [ib-support] Greetings, and, Fire! |
---|---|
Author | Helen Borrie |
Post date | 2002-05-29T01:06:50Z |
At 06:55 PM 28-05-02 -0300, you wrote:
any SQL database. For a DSQL statement to handle parameter criteria, you
would need
select apptno from appointments
where status = :status1
or status = :status2
or status = :status3 . . .
regards
Helen
All for Open and Open for All
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________
>In my codes, I have, sevarals poits that uses SQL expressions like this:I don't believe that could work. The IN clause needs a set at prepare time.
>'select xxx from TABLE T where :STATUSES like '%,' || T.STATUS || ',%'. In
>no long past, this code solves the problem of passing a set of values to a
>query, to be used in place of an IN clause, for example:
>
>select apptno from appointments
>where status in (:statuses);
>This ("...where :STATUSES like '%,' || T.STATUS || ',%'...") work fine,I think you are mistaken about this, too.
>but at now, I don't know wy, it stops to work.
>I did an upgrade of my Firebird to the version 1.0 and using it now.I would be astonished if something like your sample above ever worked with
>Have a local net with Linux server (lastest Red Hat equivalent).
>Access this server with Win98 clients.
>
>So, this is what a want to know:
>
>Dind't my code work any more?
any SQL database. For a DSQL statement to handle parameter criteria, you
would need
select apptno from appointments
where status = :status1
or status = :status2
or status = :status3 . . .
regards
Helen
All for Open and Open for All
Firebird Open SQL Database · http://firebirdsql.org ·
http://users.tpg.com.au/helebor/
_______________________________________________________