If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > An on delete set null question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-07-04, 19:47
jonrohan jonrohan is offline
Registered User
 
Join Date: Mar 2004
Posts: 42
An on delete set null question

Hi,

Ok, just to quickly fill you in. I have an equipment table. Also have another table to note the users on that piece of equipment.

As the users chage regularly I need to be able to delete them off that piece of equipment. Intially to do this i had a on delete set null. This isn't really feasable as the primary key of equipment_id shouldn't ever be null. Other than leaving the relationship out im not sure what to do.

Is there another way to do this? Im using MySQL, can I use triggers.

Thanks for looking.

Jon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On