Hi,

I have a problem when I shall delete some records (more than one) from a
couple of tables which has relations between each other.

One whay to do this and it's to select all elements I want to delete from
the "primary table" and then delete from the "secondary table" and then
later on delete from the primary table, but that is one delete query/row? Is
there any smart way to do this?

Can I user temporary tables when deleting? INSERT...SELECT works but I
havn't figured out how to use this temporary table in a DELETE query (I
don't think it's possible)?

Regards,
Johan Nilsson
Software Developer
BeCon Mobile Internet AB, Sweden
E-Mail: [EMAIL PROTECTED]
Web: http://www.beconmobile.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to