Oracle SQL Update include CASE

update ps_table A set A.field = CASE A.field when 'D002' then 'E002' else A.field END
where A.emplid = '26562864'
and A.class_nbr = '2421'

Comments