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 > Deleting on linked tabels

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-04, 18:46
mikecool mikecool is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
Deleting on linked tabels

I have just started out learning Mysql as part of my college work requires me to set up a web based notes system to act as a reminder for a technical support team. Which will hold specific information against a system and a type.

One of my examples is shown here
System = Windows
Type = Boot
Note = Make sure no cd is in the cdrom drive when booting

I have set my databse out useing three tables one to store the System information, Type and Notes. With the field names as follows

System
id system

Type
id type

Notes
id notes system_id type_id

All the fields named id are primary keys. I have been useing php to interface with Mysql and have been getting on quite well being able to insert data into the tables, retrive information and link the notes tabel via a query which i am still not sure if that is the most effictive way to do it. The problem that i have now is i want to be able to delete a system but not if the system_id field in the Notes tabel requires it. Any help on this would be greatly appreciated.

Michael

A student in need of some real help
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