Foreign key
-
Hi, for a database table having a foreign key refered to another table, what advantage will it gain to have the foreign key ? Will it faster in joining the refered and referring table ? or something else ? Thanks
-
Hi, for a database table having a foreign key refered to another table, what advantage will it gain to have the foreign key ? Will it faster in joining the refered and referring table ? or something else ? Thanks
foreign keys are used for checking references between records in different tables. With a constraint defined a record cannot be removed as there is a reference to a record in an another table. 'A programmer ist just a tool which converts caffeine into code'
-
foreign keys are used for checking references between records in different tables. With a constraint defined a record cannot be removed as there is a reference to a record in an another table. 'A programmer ist just a tool which converts caffeine into code'
-
Thanks. So what will happen in the database if the foreign key relation are violate in MySQL, will the database return an exception or something else ?
In that case database suppose to give constraint error. - ashish