update t
set column B = 12
where condition
-----------------------------------
I want to use the query result you gave me when the condition is updated
--Try
update t _a
set column B = 12
where exists(
select 1
from t
group by column A
having count(*) = 1
and min (column B) <> '12'
and _a.Column A = column A
and _a.B column = min (column B)
)