create table constrain_foreign_key(c int primary key, d int); insert into constrain_foreign_key values(1,1); insert into constrain_foreign_key values(3,3); alter table constrain_foreign_key add ...
-- Primary key -- Constraint -- parimary key constraint -- (value can not be null and cannot repeat) -- there can be only one primary key in a table drop table snapdeal_orders; create table ...