mysql pivot table image list (vertical to horizontal data) -



mysql pivot table image list (vertical to horizontal data) -

i have been searching hours limited mysql knowledge can't figure out answer.

i want transform table:

listingsdb_id listingsimages_file_name ----------- ------------ 93 name-a.jpg 93 name-b.jpg 94 name-c.jpg 95 name-d.jpg 95 name-e.jpg 95 name-f.jpg 95 name-g.jpg

into this:

listingsdb_id image1 image2 image3 image4, image5,image6... ----------- ------------ ------------ ------------ ------------ 93 name-a.jpg name-b.jpg 94 name-c.jpg 95 name-d.jpg name-e.jpg name-f.jpg name-g.jpg

using mysql

mysql table pivot

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -