Search array using MYSQL

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

DrP

Thread Starter
Joined
Jul 23, 2005
Messages
739
One of the columns in my MySQL database contains an array of names. I would like to select rows from the db which only contain certain names within that array. Is that possible? I'd like to do it using a MySQL command if possible.
Thanks,
 

DrP

Thread Starter
Joined
Jul 23, 2005
Messages
739
Do you mean something like this?

SELECT * FROM records WHERE records_audience IN 'Joe Bloggs';

because all I'm getting is:

Parse error: syntax error, unexpected '*' in...

I've tried changing the code around but it still isn't working. Is there another method? I basically want something like the search and REPLACE command for MySQL without having to replace.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top