Neat PL/SQL Trick
Wednesday, October 11th, 2006As usual Tom Kyte blogs about a feature in PL/SQL that many people are not aware of. It is a challenge to deal with the global variables and on top of that if a thing like Tom pointed out happens you would be scratching your head to find the answer. In order keep your globals straight he suggests,
The other approach, when FORCED to use globals, assign them to another variable OR cause a temporary to be created (|| ‘’ for strings, +0 for dates, numbers…)
Check out his post for more detailed information.