List datadype

Hello!

Is there anything in MySQL taht allows user to store in one filed multiple
values?
I mean something like SET; but we cannot store in set nothing except for
values declared while TABLE creation, and I need some kind of equivalent for
list.

Szymon bobek
Simon [ Sa, 20 Januar 2007 23:26 ] [ ID #1602469 ]

Re: List datadype

Simon wrote:
> Hello!
>
> Is there anything in MySQL taht allows user to store in one filed
> multiple values?
> I mean something like SET; but we cannot store in set nothing except
> for values declared while TABLE creation, and I need some kind of
> equivalent for list.

You can add / remove / alter the SET by the ALTER syntax.
If that's not what you want, I'd go for an extra table.

table_main
id
name

table_values
id
name

table_main_values
table_main_id
table_values_id
--
Rik Wasmus
Rik [ So, 21 Januar 2007 01:42 ] [ ID #1603149 ]
PHP » alt.php.sql » List datadype

Vorheriges Thema: How to extract Hour, Minute & Second
Nächstes Thema: Hvordan er dette mulig ...