Re: order of items in a WHERE...IN clause

2008-10-24 Thread Moon's Father
See the usage of the function named field. On Mon, Jul 28, 2008 at 8:15 PM, Mr. Shawn H. Corey <[EMAIL PROTECTED]>wrote: > On Mon, 2008-07-28 at 07:32 -0400, Gary Josack wrote: > > Andrew Martin wrote: > > > Hello, > > > > > > Is it permissible to order a clause such that the search term is the >

Re: order of items in a WHERE...IN clause

2008-07-28 Thread Mr. Shawn H. Corey
On Mon, 2008-07-28 at 07:32 -0400, Gary Josack wrote: > Andrew Martin wrote: > > Hello, > > > > Is it permissible to order a clause such that the search term is the > > first item (in the clause)? > > > > standard: > > field1 IN (123, 654, 789) > > > > in question: > > 123 IN (field1, field2, field

Re: order of items in a WHERE...IN clause

2008-07-28 Thread Gary Josack
Andrew Martin wrote: Hello, Is it permissible to order a clause such that the search term is the first item (in the clause)? standard: field1 IN (123, 654, 789) in question: 123 IN (field1, field2, field3) I am interested to know if the optimizer treats this any differently if anybody can she