I have created multiple tables in MySQL, yet data in some fields in one or more table should exist in other tables. I know that this can be created by adding foreign key to the table.
I would like to know how this can be done.
Please note that on deletion of any record all linked should NOT be deleted … the value can be changed to null. I’ll manage it in other way.
PS: I just need the code to do this.
See: http://dev.mysql.com/doc/refman/5.1/en/create-table.html