I have two following update statements:
update tb1
set col1=1
where id in ('1', '2', '3')
update tb1
set col1=0
where id not in ('1', '2', '3')
Can I combine above two update statements into one?
I have two following update statements:
update tb1
set col1=1
where id in ('1', '2', '3')
update tb1
set col1=0
where id not in ('1', '2', '3')
Can I combine above two update statements into one?