Can fields in a where statment be ingnored. Such as Where name = :name and date = :date, but if I just pass in a name I'd like the where to select only on the name and ignore the date.
Software/Hardware used:
ASKED:
October 31, 2008 8:13 PM
UPDATED:
November 3, 2008 4:47 PM
Hi,
I normally do something along these lines :-
Select xxxxx
From xxxxx
Where (name = :name or :name = ”) and (date = :date or :date = 0)
May not be the nicest way of doing this, but it works.
Regards,
Martin Gilbert.