I don't think you are comparing like with like here.
Outputting data to the terminal is never a good test of speed. Try it without the print to take this out of the equation.
Also, why bother doing all those tests of NULL to change the returned value to Unknown when you can use coalesce in your SQL select and let oracle do it.
In reply to Re: Query takes 895ms in TOAD but 42s in DBI
by mje
in thread Query takes 895ms in TOAD but 42s in DBI
by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |