How is the references keyword used when creating a table?
references
Let\'s say I want to create two tables person and hobby and I want t
person
hobby
Create the hobby table similarly to this:
CREATE TABLE hobby ( id INT NOT NULL AUTO_INCREMENT, person_id INT NOT NULL, hobby_name VARCHAR(255), PRIMARY KEY(id), FOREIGN KEY(person_id) REFERENCES person(id))