Jump to content

finding a value in a field which contains an array


glennn.php

Recommended Posts

i have a field, "models", which will contain an array such as "Acura, Camaro, Blazer" - i'm trying to learn how to use IN to get any row that would contain "Acura" within that field.

 

SELECT * from TABLE WHERE 'Acura' IN 'models'...? that didn't work...

 

anyone...?

 

thanks much

 

GN

very true. i'm not good at JOINS and multiple tables, especially when the client wants to pay budget scale...

 

be that as it is, can you show me how i'd get Acura out of that array? i am in fact researching how i'd normalize this table - i hate to do a bad job even when the money isn't right.

 

i'm much obliged...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.