Question : PL/SQL - ATTRIBUTE10 = REPLACE(NVL(vFlexValue, oFlexValue), 'NULL', NULL)

Hi Experts,

ATTRIBUTE10 = REPLACE(NVL(vFlexValue, oFlexValue), 'NULL', NULL), Can anybody explain how this staement is executing, and what would be stored in ATTRIBUTE10, after execution.

thanks
Dileep.

Answer : PL/SQL - ATTRIBUTE10 = REPLACE(NVL(vFlexValue, oFlexValue), 'NULL', NULL)

NVL goes: If first values is null, return the second.

Hopefully REPLACE is straight forward?

if vFlexValue is null, take the value of oFelxValue. If that value is the string 'NULL' replace it with a NULL.
Random Solutions  
 
programming4us programming4us