1.create table temp_tab as
select * from A where nid=123
2.delete from A where nid=123
3.insert into A 
  select * from temp_tab