I have multiple fields name as this
custom_1_field
custom_2_field
custom_3_field
.
.
custom_N_field
I never know how much custom_N_fields. I need to concat all of them.
I can concate with this code if i kwow how much fields i have
CONCAT_WS(' ',custom_1_field,CONCAT('<hr>',custom_2_field)) AS new_field
But if i don't know how much N custom_N_fields I have, what can i do?
There are something like CONCAT custom_N_fields where 'N' it's any number?
EDIT: i use php+sql
Thanks