caseを使用できます 式:
select (case when colA = ' ' then to_char(col_b)
else colA
end) as new_colA
より一般的にしたい場合は、likeを使用できます。 :
select (case when colA like 'K%' then colA
else
end) as new_colA
update 、whenを移動します フィルタリング条件への条件:
update t
set colA = to_char(colb)
where colA = ' ';