I have a database (for a PHP web application) with a table client having various attributes.
Two such attributes are phone_numbers and emails.
One client can have zero or more phone-numbers and zero or more e-mails.
I'd like to store the client table as:
create table client (
id int not null auto_increment primary key,
...
text phone_numbers,
text e-mails) default character set utf8
The phone-numbers would have a format "pn1:type1,pn2:type2,...,pnN:typeN"
and e-mails would have a format "e1,e2,...,eN".
Are there some important problems with this design I could encounter later?
Is there a better design for these issues and why?