Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL index hints

Status
Not open for further replies.

jl8789

MIS
May 22, 2003
293
US
I am very new to Java so please bear with me. I am trying to build an SQL statement that will prefix an Oracle hint, like SELECT /*+ index(column index)*/ column,column,. I have a prepared statement built and I just want to put this hint ahead of the columns. Looks like this creates the list and columns: // create & return persistable objects: SuggestedPOSKUStoreQuantityEntity
return createPersistable(persistableList, ((SelectCommand)selectCommand).getSelectColumns()); Will I need to add the hint in the getSelectColumns function, or is there a way to break apart the prepared statement and insert it in there? I'm probably asking for help and providing too little info to help solve this issue?
Thank You.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top