The only problem with first suggestion is that you don't have ful control over the select stmt text generated. What you need is to add a computed item as the first field on the request line. I call the field Hint for documentation purposes.
The definition of the item should be, e.g.
/*+ Ordered */1
You need to include the 1 at the end. It will generate a column that has a value of 1, which you can hide, but it also comes in handy sometimes when counting things. Oracle will recognize the Hint text and include it in the query. You can confirm this by looking at the Custom SQL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.