Please explan Why static query is more faster than dynamic
query ?
Answers were Sorted based on User's Feedback
Answer / uma
In dynamic SQL the SQL statement is prepared each time
before the Run time.But this not the case with static SQL
it ll be stored in shared SQL area and this will refered if
same Query is used again.So static ll be faster
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / deshabandhu bar
Static query is faster as this keep the Execution plan in
the lib cache. Also it keeps data blocks in the buffer
cache. Next time when a user try to execute the same query
the user hit the cache and execution plan will be ready for
that user. So the time required for parsing and creating
execution plan will be 0. So the Static query is faster
than the dynamic query.
Is This Answer Correct ? | 5 Yes | 0 No |
Explain about achiever in sql?
I have a table like this Table Name:Products Productid Price 1 10 1 10 2 20 3 30 3 30 But i want to output like this. productid price 2 20. please replay me.
What is the purpose of save points in oracle database?
Why does for update in oracle 8 cause an ora-01002 error?
what is the use of rank function?
What is the purpose of a cluster?
How does oracle handle read consistency?
How do we create privileges in oracle?
What is the use of Control File ?
What are the differences between a sys and system user and what are the extra privileges available to the sys user?
Explain a data segment?
How to sort output in descending order in oracle?