x

How can we pass hints to the SQL processor?

How to pass the hints to the SQL processor ? is there a way to do this ?

more ▼

asked Jan 06, 2010 at 10:20 AM in Default

avatar image

OraLearner
1.3k 82 88 92

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

You embed the hint directly in the SQL statement.

For example

SELECT /*+ NO_CPU_COSTING */ emp_name, 
       dpt_name, 
       grd_desc 
  FROM grade, 
       employee, 
       department department1 
 WHERE ...

The /+ / syntax starts and stops a hint.

more ▼

answered Jan 06, 2010 at 11:06 AM

avatar image

HillbillyToad
1k 2 4

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x985
x424
x5

asked: Jan 06, 2010 at 10:20 AM

Seen: 1296 times

Last Updated: Jan 06, 2010 at 10:20 AM

Copyright 2016 Redgate Software. Privacy Policy