Subject | Re: [firebird-support] Problem with query parameter |
---|---|
Author | Anderson Farias |
Post date | 2009-03-10T15:20:36Z |
Hi,
He is saying he wants ALL records when passing a null param *OR* only
records where some field match the param otherwise.
Regards,
Anderson Farias
> No it isn't possible,YES, it is possible!
> You can't select anything from a table based on a parameter you areSorry, but this is wrong. I aways do that on my SPs and it works perfectly.
> setting if that parameter is null. What do you expect back??
He is saying he wants ALL records when passing a null param *OR* only
records where some field match the param otherwise.
> select * from TABLEHow exactlty are you executing this? Is it inside some SP or Trigger??
>> where FIELD = :param or :param is null
Regards,
Anderson Farias