I would like to know, if there is any possible way in SQL to distinguish which one of default parameters was set when function was called? F.e. if there is function:
CREATE OR REPLACE FUNCTION someFunction (
ID NUMBER,
showNames VARCHAR2 DEFAULT 'N',
showAddress VARCHAR2 DEFAULT 'N')
and it will be called like that:
someFunction(123, 'Y')
is there any way to distinguish which parameter was set by 'Y'? Or if I need to set showAddress to 'Y' do I have to call function like that:
someFunction(123, 'N', 'Y')
varchar2suggests Oracle.