Using hints with Insert Statement in PLSQL
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Using hints with Insert Statement in PLSQL

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    135

    Question Using hints with Insert Statement in PLSQL

    Oracle 11g

    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.

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by daljitsb View Post
    Oracle 11g

    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?
    1- "Commenting Symbols" are part of the syntax of ANY Oracle hint.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width