View Single Post

   
  #12 (permalink)  
Old 05-20-2008, 05:55 PM
Moon's Father
 
Posts: n/a
Default Re: Order Problem

That is fine.

On Thu, May 8, 2008 at 4:51 PM, Neil Tompkins <neildtompkins@hotmail.com>
wrote:

> Perfect. It worked just how I wanted.
>
> Thanks for your help.
>
> Neil
>
>
>
> > Date: Wed, 7 May 2008 19:54:39 +0200> To: neildtompkins@hotmail.com>

> Subject: Re: Order Problem> From: leannonn@gmail.com> > Hi,> > You should
> look at the `FIND_IN_SET` function here: >
> http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set>
> > Your query could look like:> SELECT ProductID FROM Products WHERE Enabled=

> ' Yes' AND ProductID > IN(varProductID) ORDER BY FIND_IN_SET(ProductID,
> varProductID);> > Haven't tested it, though...> > > Take care,> Aleksandar
> __________________________________________________ _______________
>
> Discover and Win with Live Search
>
> http://clk.atdmt.com/UKM/go/msnnkmgl...ukm/direct/01/
>




--
I'm a mysql DBA in china.
More about me just visit here:
http://yueliangdao0608.cublog.cn

Reply With Quote