Delete Orphaned Records


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. -- BACKUP, BACKUP, BACKUP!! --
  2.  
  3. FROM child_table
  4. (SELECT id FROM parent_table);

URL: http://answers.yahoo.com/question/index?qid=20080708150528AAU33rq

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.