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:
and want convert , catch through query (select):
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
Post a Comment