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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -