OT mysql pivot table problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know this is the off topic (sorry), but it is a php project that I'm
working on!  I need some pointers on how to pivot a mysql column (containing
comma delimited data) into an equal number of rows (see example).  Any
direction (pointers to links, etc. would be appreciated).

>From this:

user.table
uid|name|groups
1|mcgiddin|1,4,7,10,12


To this:

pivot.table
uid|group
1|1
1|4
1|7
1|10
1|12

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux