You are on page 1of 1

business email app password....

for configuration...
----------------------

jasminmakwana1983@gmail.com
tqxm xywh mmtf heuw

----------------------

bhumimakwana1983@gmail.com
lqva kdii iwjm ives

----------------------

-----------------------------------------------------------------------------------
--

when you have 2 tables,


a primary key of the first one should must be foreign key of the second one..,
then you have to do as follows....

create table seller_master (


seller_id int(5) auto_increment primary key,
seller_name varchar(30) not null,
property_id int(5)
);

create table property_master (


property_id int(5) auto_increment primary key,
property_type varchar(30) not null,
seller_id int(5),
foreign key (seller_id) references seller_master(seller_id)
);

ALTER TABLE seller_master


ADD CONSTRAINT fk_property
FOREIGN KEY (property_id)
REFERENCES property_master(property_id);

You might also like