Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpmyadmin and table Relationships

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
OK...does anyone have any idea how I can create primary and foreign key relationships in phpMySQL Admin for MySql?
If there isn't a way to do that in phpMyAdmin, is there
another front end to let me create relationships in MySql?

please help,
thanx,
-derek
 
Foreign keys are software dependant in MySQL, which is why phpMyAdmin doesn't provide that functionality. I'm not aware of any MySQL front-end that supplies this functionality.
 
What do you mean by software dependent? I don't understand what you mean by that. So how do i create table relationships in MySql then?
 
What I meant was: "You can have columns in a table that are foreign keys, but your software has to manage the contraints. For example, MySQL would allow you to put a bogus ID into a foreign key."

But, I was mistaken. I just did a search of "foreign key" on the web site, and found this:

The table with a foreign key, and the table referenced by the foreign key both have to be of type "InnoDB". Now I know that phpMyAdmin will allow you to set the table type, but I don't know how it handles foreign keys.

Anyone else?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top