Jump to content

How to link a column in one table to another table


louiscb

Recommended Posts

Simple question but I couldn't find any straight forward answers.

 

I have a customer details table with: customer ID, name, address, email.

 

I also have an delivery table with delivery ID, customer ID, order ID.

 

How can I link the customer ID column from the customer table to the delivery table so that when changes occur on the customer table they subsequently alter all other tables?

 

I know it might use foreign keys but I couldn't find any online resource that explained how to use them properly.

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.