how to add a forign key into a table mysql code example
Example 1: mysql remove foreign key constraint
ALTER TABLE jobs DROP FOREIGN KEY constraint_name
Example 2: create table mysql with foreign key
CREATE TABLE Orders (
OrderID int NOT NULL,
OrderNumber int NOT NULL,
PersonID int,
PRIMARY KEY (OrderID),
FOREIGN KEY (PersonID) REFERENCES Persons(PersonID)
);