x404.co.uk http://www.x404.co.uk/forum/ |
|
MySQL/PHP help http://www.x404.co.uk/forum/viewtopic.php?f=4&t=14351 |
Page 1 of 1 |
Author: | forquare1 [ Mon Aug 01, 2011 10:33 am ] | ||||||||||||||||||
Post subject: | MySQL/PHP help | ||||||||||||||||||
Hi all, I have two tables that look like this:
In the defect table, unit_number should be a foreign key to the primary key of the unit table. My SQL looks like this:
My questions are: 1) Is the SQL correct? 2) When I am doing an insert, how do I make the reference? Many thanks, Ben |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |