| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Neil Tompkins | Date: | May 8 2008 10:51am |
| Subject: | RE: Order Problem | ||
| View as plain text | |||
Perfect. It worked just how I wanted. Thanks for your help. Neil > Date: Wed, 7 May 2008 19:54:39 +0200> To: neildtompkins@stripped> Subject: > Re: Order Problem> From: leannonn@stripped> > 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/msnnkmgl0010000007ukm/direct/01/
| Thread | ||
|---|---|---|
| • Query/Key Optimization | Michael Stearne | 6 May 2008 |
| • Re: Query/Key Optimization | Michael Stearne | 6 May 2008 |
| • Re: Query/Key Optimization | Krishna Chandra Prajapati | 7 May 2008 |
| • question about update/join query | Andy Wallace | 7 May 2008 |
| • Re: question about update/join query | Andy Wallace | 7 May 2008 |
| • Order Problem | Neil Tompkins | 7 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • RE: Order Problem | Neil Tompkins | 8 May 2008 |
| • Re: Order Problem | Moon's Father | 20 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
