oracle10g - Difference between 'Execute' and 'Execute as script' -


What I currently experience when using TOAD with Oracle is a strange behavior.

I have a query:

  SELECT COUNT (as_at_date) from job_log as WHERE as_at_date = TO_DATE ('24 / 11/2009 ',' dd / mm / yyyy ' );  

When I try to run it using the Todd 'Execution Statement' button, I get zero rows back though, even when I 'execute as script' I use it, then I get a line returned, which is as expected.

Can anyone explain to me why using different commands will create a difference in the result set?

This is not a direct answer to your question (and it will give you a moment Or two for setup and analysis), but you can take a TKPROF trace in the database to see if it really comes from Tod ....

See

and

For some examples.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -