create optional parameter in stored procedure sql server code example
Example: sql stored procedure optional parameter
-- SQL Server
CREATE PROCEDURE MyProc
@Parameter VARCHAR (100) = 'DEF'
AS ......
-- Oracle
CREATE PROCEDURE MyProc (Parameter IN VARCHAR2 DEFAULT 'DEF')
AS ......