I have an Mysql query
SELECT *
FROM EMPLOYEE
WHERE DEPARTMENT = ?
AND DESIGNATION = ?
AND DISTRICT = ?
AND CIRCLE = ?
And quite possible any 1 or 2 or 3 of the parameter (?) can be empty or null.
so what should I do so that the empty parameters are totally
Ignorein the where clause andonly search for the non-empty parameterin the table.
How can I achieve this
Please help.. The query must be compatible mysql. Thanks