oracle 同樣資料刪除(僅僅留一條)

weixin_34262482發表於2014-10-08
DELETE 
  FROM reg_user t1 
  WHERE user_name='9527008' and rowid > ( SELECT min(rowid) 
  FROM location t2 
  WHERE t1.user_name= t2.user_name);

相關文章