mysql - Split one column in many columns [Wordpress] -


good evening,

i want me split of column in many columns, tried many cases not succeed...

i have table in entries made in column name -> value:

photo image sample 1

and want convert , catch through query (select):

photo image sample 2

i grateful if there solution... thanks!

try query. (assuming [test] table name)

select  t.lead_id  , t.form_id -- sub-query value1 , (select value test inner_t inner_t.lead_id = t.lead_id , inner_t.form_id = t.form_id                                         , inner_t.field_number = 1) value1 -- sub-query value2 , (select value test inner_t inner_t.lead_id = t.lead_id , inner_t.form_id = t.form_id                                         , inner_t.field_number = 2) value2 -- sub-query value3 , (select value test inner_t inner_t.lead_id = t.lead_id , inner_t.form_id = t.form_id                                         , inner_t.field_number = 3) value3 -- sub-query value4 , (select value test inner_t inner_t.lead_id = t.lead_id , inner_t.form_id = t.form_id                                         , inner_t.field_number = 4) value4 test t group lead_id, form_id 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -