If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Ways to implement a QUERY OPTIMIZATION change

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-04, 08:51
dlafreni dlafreni is offline
Registered User
 
Join Date: Jun 2003
Location: Canada
Posts: 35
Ways to implement a QUERY OPTIMIZATION change

I want to execute a SELECT with a query optimization level 0 and then set it right back at 5. I am currently thinking about using 3 statement:

SET CURRENT QUERY OPTIMIZATION 0;
Select c1 from t1;
SET CURRENT QUERY OPTIMIZATION 5;

Is their a better way to do this ? I want it to affect only query on t1.

Regards,

Dany
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On