[EMAIL PROTECTED] writes:
[SNIP]
Isn't it annoying when it refuses to send your mails to the list
and then lets through a ton of spam? Mysql mysql mysql. There. :-E
> Carl Schrader writes:
>
> > select Title from inv where Title LIKE '%TOMMY%' OR Content LIKE
> > '%TOMMY%' OR Notes LIKE '%TOMMY%' order by Title
> >
> > What I need is to have the results that match Title LIKE '%TOMMY%' to
> > appear first and then the rest.
>
> ORDER BY !LOCATE('tommy',Title), Title should be enough
--
Carl Troein - Círdan / Istari-PixelMagic - UIN 16353280
[EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
Amiga user since '89, and damned proud of it too.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php