How to set foreign key in phpmyadmin xampp

create table student( id int not null AUTO_INCREMENT primary key, name varchar(225), branch varchar(225) ); create table sinfo( id int not null AUTO_INCREMENT PRIMARY KEY, sid int not null, address varchar(225), FOREIGN KEY(sid) REFERENCES student(id) );

agyanadda

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 $type={blogger}:

Post a Comment