Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Physical Design question

Author  Topic 

jimmyo88
Starting Member

2 Posts

Posted - 2011-04-24 : 21:59:22

Hello there, I'm putting the below design in to phpmyadmin. At the moment I've created new tables and datatypes for fields for customer,invoice and Cakedesign.

I am now about to do the same for table order but notice that there are foreign keys. Can anyone tell me how I implement these in phpmyadmin. Do i have to link them to the other tables somehow?

 
tblCustomer (cID, cFName, cSName, cAdd1, cAdd2, cPostCode, cTelNo)

tblInvoice (invID, invDate)

tblCakeDesign (cDesID, cDName, cDType, cDSize, cDImage, cost)

tblOrder (orID, orderDate, dateRequired, cID, cDesID, invID, inscription, depositPaid, completed)
FK cID?tblCustomer Update Cascade, Delete Restrict
FK CDesID?tblCakeDesign Update Cascade, Delete Restrict
FK InvID?tblInvoice Update Cascade, Delete Restrict

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-24 : 23:36:01
You'll want to ask your question on a site that specializes in that technology. SQLTeam specializes in Microsoft SQL Server.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

youky
Starting Member

5 Posts

Posted - 2011-04-25 : 02:36:06
unspammed
Go to Top of Page
   

- Advertisement -