How can I set up mysql so as if the id of an entry from table 1 is
inserted in table 2 it will not allow me to delete the information in
table 1?


EX: 
table1 holds the description of the products (table1_id is the primary
key of the table);

table2 holds the information about all the purchased products and the
customers.

How can I set up table1 to lock all the entries that are used in table2
for reference?

I appreciate any answer....

Thank you,
Ciprian



---------------------------------------------------------------------
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