Jump to content

Multiple values in 1 field in DB


affordit

Recommended Posts

If you want to have multiple values, you should use another table with a one-to-many relationship. But you do have other options:

 

1) Separate the values with a comma. Simple, but hard to search for values.

2) Use bit values. http://dev.mysql.com/doc/refman/5.0/en/bit-functions.html. More complicated, but better in the long run.

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.