Thread: arrays in mysql
View Single Post

  #4 (permalink)  
Old 12-20-2007
Paul Lautman
 
Posts: n/a
Default Re: arrays in mysql

J.O. Aho wrote:
> Joe wrote:
>> Is there an accepted way to store arrays in mysql(5.0).

>
> serialize it before you store it, then you get a "string" of the
> whole array.


Err, this is a relational database yes?
Arrays should be stored as one-to-many relationships.


Reply With Quote