adding optional parameters to sql stored procedure 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 ......