Author Topic: How do I do this in MySQL?  (Read 4423 times)

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: How do I do this in MySQL?
« Reply #15 on: April 19, 2012, 12:45:53 PM »
>>if the repair record is deleted the repair detail should be deleted automagically too?

If the the repair record doesn't exist, the repair detail can't exist. If you want to have the autodelete behavour you'll need to specify "ON DELETE CASCADE" (or something like that, it's been a while since I've actually used any of this stuff).