MySQL Forums
Forum List  »  PHP

Re: Trying to retrieve data where a variable is in an array
Posted by: Peter Brawley
Date: February 21, 2010 10:22PM

> I have a column in my MySQL table that stores the data, due to how it's received, as a comma delimited array. This array is of variable length.

Unless that's just a staging table, or all values in such "arrays" are always retrieved together, that's a misuse of a relational database, the first rule of which is atomicity--one value per cell. You need to normalise your tables.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.