On 14 Oct 2002, at 20:29, Tim Kerch wrote:

> For example, I have a string
> "Administration,Advertising,Direction,Media,Research" and I want to see
> whether a SECTOR field in a row is contained in the above string.

You could construct a query something like this:

    SELECT * FROM table_name WHERE sector IN ('Administration',
        'Advertising', 'Direction', 'Media', 'Research');

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Tobacco Documents Online
http://tobaccodocuments.org

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