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 |
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
I have a table that log salary-increase-process have fields: autoid, old_salary, acctno and table EMP: acctno, name, salary I want to list count increase-salary of employees, each have old_salary, new_salary. Help me with SELECT statement, please!
How to write a left outer join with the where clause in oracle?
What is the difference between a hot backup and a cold backup in oracle?
What are the oracle differences between nvl and coalesce
Hi can anyone tell me where are the dumps found of OCA certification.. Also the materials to be studied for the preparation.
what are corelated subqueries
How do we get field details of a table?
How to find out what privileges a user currently has in oracle?
What is SGA ? How it is different from Ver 6.0 and Ver 7.0 ?
what are steps for interface? where is exchange rate defined in which table?
How to sort output in descending order in oracle?