Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use hints in PL/SQL

ozoracleJul 20 2011 — edited Jul 20 2011
Hi,

If I want to use hints in PL/SQL procedure, it is valid to write it this way:
begin
 update /*+  INDEX(opp DIM_OPP_REFDB_IDX) */
        scott.rec_dim_opportunity opp
        set opp.mp_opportunity_re ....
end
I doubt when I tried it that the optimizer didn't actually use the index.

Thanks in advance.

Oracle 10g R1
Windows 2003 32-bit
This post has been answered by €$ħ₪ on Jul 20 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2011
Added on Jul 20 2011
3 comments
128 views