Using hints with Insert Statement in PLSQL
Does the below statement from within PLSQL block utilize the APPEND hint for direct inserts (without logging)
INSERT /*+ APPEND */ into myTable Select * from myView
1. How does commenting symbols read during execution of the PLSQL code.
2. Does /*+ APPEND */ get ignored or take effect?
or Should we must use something like this
v_myvar := 'INSERT /*+ APPEND */ into myTable Select * from myView';
execute immediate v_myvar;
Last edited by daljitsb; 10-06-2011 at 01:32 PM.
1- "Commenting Symbols" are part of the syntax of ANY Oracle hint.
Originally Posted by daljitsb
2- No. Append hint is taked into consideration because of it.
Pablo (Paul) Berzukov
Author of Understanding Database Administration
available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Click Here to Expand Forum to Full Width