In MySQL, FOREIGN KEY
constraint is used to link-up two or more tables. The table in which the foreign key is defined is called the "child table" and it (often) refers to the primary key in the parent table.
The "pk" column in the "tblbankheadquartersandaddress" table is the PRIMARY KEY in the "tblbankheadquartersandaddress" table.
The "bankId" column in the "tblbankdemataccountcharges" table is a FOREIGN KEY in the "tblbankdemataccountcharges" table.
FOREIGN KEY
constraint on the "custId" columns when the "tblbankdemataccountcharges" table already exists:
FOREIGN KEY
constraint "FK_BankID" from "tblbankdemataccountcharges" table: