In MSSQL, when I want to ignore an empty filter parameter, I do the following
SELECT * FROM Table WHERE EmployeeName = ISNULL(@EmployeeName, EmployeeName);
How can I achieve this in MySQL?
You can use instead coalesce() .
coalesce()