Subject | Re: [firebird-support] Is there a parameter value of 'don't care' ? |
---|---|
Author | Uwe Grauer |
Post date | 2007-01-11T15:10:08Z |
tickerboo2002 wrote:
If you would use like you could use '%%'
where
Co_name=:Co_Name and
town=:town and
Num_Employees like '%%'
etc
Uwe
> Users of my app will be able to fill in parameters that go into aNo, it can't be ignored.
> query to search for rows. The query has fixed parameters in the where
> clause: i.e.
>
> where
> Co_name=:Co_Name and
> town=:town and
> Num_Employees=:Num_Employees
> etc
>
> Let's say the user is not interested in Num_Employees, is it possilble
> to set the parameter so that clause is ignored?
>
> I assume for varchar entries I can just set Col=* (or is it %?)
>
> Thanks
>
> David
If you would use like you could use '%%'
where
Co_name=:Co_Name and
town=:town and
Num_Employees like '%%'
etc
Uwe