Board index » delphi » SQL Parameters: multi value WHERE / using "in (:var1, :var2)
Andrew Ward
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Andrew Ward
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
SQL Parameters: multi value WHERE / using "in (:var1, :var2)hey All... It just don't seem to work! I get an empty set! any ideas? if i like put a standard number in as well, that works! But the vars seems like they should. I quote: Variables or parameter markers (?) can be used in DML statements in SELECT LAST_NAME, FIRST_NAME Am i just dull? I wont to use multivalues for a query!? Don't want to -- --Andrew Ward mailto:andr...@techie.com 'A glove,' said Crash, in a terrible voicee. |
Darkne
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:SQL Parameters: multi value WHERE / using "in (:var1, :var2)Are you in your code setting the parameters? Such as Example below? Query1.SQL.Clear; Try that then the Query will work at runtime, to test the Query at Cheers On Mon, 24 Nov 1997 23:25:39 +1100, Andrew Ward Quote<NOSPAM-andr...@techie.com> wrote: |
Michael Johnso
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:SQL Parameters: multi value WHERE / using "in (:var1, :var2)remember, that by default PARADOX tables are case sensitive -Michael Quote |
Andrew War
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:SQL Parameters: multi value WHERE / using "in (:var1, :var2)--------------FDF39ED77BE8A03203B92C9F Hey Guys... unfortuneatly, those are not the probs... QuoteDarkness wrote: woosy effort and use a filter. It may do the job anyhow! these are the SQL (design time) strings I suspect that it is something to do with having vars in the 'in' Quote> >hey All... http://www.newcollege.unsw.edu.au/andreww 'A glove,' said Crash, in a terrible voicee. --------------FDF39ED77BE8A03203B92C9F <HTML> <P>Hey Guys... unfortuneatly, those are not the probs... Quote<P>Darkness wrote: Yep! Previous message is below, but now I'll add my code. I may just go a woosy effort and use a filter. It may do the job anyhow! <P>these are the SQL (design time) strings <P>I suspect that it is something to do with having vars <U>in</U> the <P>'A glove,' said Crash, in a terrible voicee. --------------FDF39ED77BE8A03203B92C9F-- |
1. BDE: "Invalid parameter" on sql open
2. SQL parameter causes "Operation not applicable"
3. Assigning blob values using "insert"
4. changing values to "no value"
5. R: Help using value parameter!!
6. Help using value parameter!!
8. Returning the value of a parameter using an event on a dcom server
9. using "like" in a SQL statement
10. Set Query Parameter using Login Values in a WebSnap Form