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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi there, Does anybody know how to

Status
Not open for further replies.

sem

Programmer
Jun 3, 2000
4,709
UA
Hi there,
Does anybody know how to push optimizer hint into a view? I need to force using index on one of the inner view tables. I know it's possible, but can not remember syntax.

create view v as select id, value from tab t;

select /*+ index(smth I dont know)*/ id, value from v where id = 0

Regards, Dima
 
Resolved. For curious:
inner table may be referenced as view_name.table_name. This may be applied also for higer nesting levels.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top