I see. So, if it's not obvious, I'm recording hits to web pages. Each hit references multiple separate values like the URL, the visitor that made it, and so forth. I periodically throw away old hit records (in this case, I'm only interested in about the past week at any time), and I was hoping to use cascade to automatically discard e.g. visitors that don't have any hit records left.
Is there a straightforward way to do this?
Main Topics
Browse All Topics





by: philipjonathanPosted on 2008-10-01 at 19:36:05ID: 22620908
Nope, it's the other way round.
Try deleting a row from visitor, then all rows in hit whose visitorId references the deleted visitor row will be deleted too.