update tb set val=case when val is null then '321' else val end