tags:

views:

738

answers:

2

How to create optional parameter in mysql stored procedure?

+1  A: 

According to this bug, there is currently no way to create optional parameters.

xsl
A: 

Optional parameters are not supported in mySQL stored procedures, nor are there any current plans to add this functionality at this time. I'd recommend passing null for optional parameters.

Cory House