- Jan 2, 2006
- 10,455
- 35
- 91
So I'm trying to use databases for my website. I installed MySQL, and for the life of me I can't figure it out. I did a little bit of Access DB building back in college but this is a whole different world.
1. No nice GUI like Access. Can't visually see and make relationships to tables. I'm using phpmyadmin.
2. I want to start by creating two tables: one for properties (EstateID primary key, street, city, zip, #baths, RealtorID, etc) and one for the realtor (RealtorID primary key, fname, lname, phone #, etc). I want to link the Estate table to the Realtor table using the RealtorID as a foreign key. Apparently foreign keys are not supported in the default MySQL table? Uhhhh... aren't foreign keys one of the foundations in ALL relational databases? It's relational. Different tables in a single database are linked through foreign keys and related to each other... I HAVE to be missing something...
Without foreign keys don't you just have a bunch of tables that can't be linked to each other?
1. No nice GUI like Access. Can't visually see and make relationships to tables. I'm using phpmyadmin.
2. I want to start by creating two tables: one for properties (EstateID primary key, street, city, zip, #baths, RealtorID, etc) and one for the realtor (RealtorID primary key, fname, lname, phone #, etc). I want to link the Estate table to the Realtor table using the RealtorID as a foreign key. Apparently foreign keys are not supported in the default MySQL table? Uhhhh... aren't foreign keys one of the foundations in ALL relational databases? It's relational. Different tables in a single database are linked through foreign keys and related to each other... I HAVE to be missing something...
Without foreign keys don't you just have a bunch of tables that can't be linked to each other?