MySQL optional stored proc parameters

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?

0


source to share


1 answer


You can use instead coalesce()

.



+1


source







All Articles