I want to get data from 2 columns, from '1h' and 'rate', and combine these values with '|' and add it to another column named '24h'. Something like "1h|rate"
update `exchanges` set 24h = `1h`.'|'.`rate` where id=1
I want to get data from 2 columns, from '1h' and 'rate', and combine these values with '|' and add it to another column named '24h'. Something like "1h|rate"
update `exchanges` set 24h = `1h`.'|'.`rate` where id=1
update `exchanges`
set `24h` = concat(`1h`, '|', `rate`)
where id = 1
But note that this seems to be a denormalized column if you put multiple values in it.