if col1
has value lorem
or null
col2
- ipsum
or null
col3
- dolor
or null
col4
should be lorem,ipsum,dolor
if there is no null
inside preceding columns.
if, for example, col2
is null
the result should be lorem,dolor
something like - update table set col4 = concat(col1, col2, col3)
- but jumping over nulls
Is this possible using mysql?