What language are you using to prepare that query?

If it's perl, do something like if ($title =~ /Green/)
If it's php, do something like if (ereg("Green",$title))
If it's C, cycle the string finding that

This is a job for the client truthfully...but if you absolutly MUST do this
server side, here is your query:
select Title, IF(Title LIKE '%Green','Green','Blue') AS whatmatch

----- Original Message -----
From: "Carl Schrader" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 10:56 AM
Subject: Re: Results came from


> >
>
> Is there anyway to determine which part of the an sql query where blahblah
> produced
> the result?
> ie. select Title from inv where Title LIKE '%Green' OR Title Like
> '%Blue%'
> I need to distinguish if the Title was like Green or Blue..
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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

Reply via email to