I have table as
CREATE TABLE circle
(
circle_id int(11) auto_increment primary key not null,
user_id int (11) not null,
title varchar(255) collate utf8_general_ci not null
);
CREATE TABLE circle_share1
(
id int(11) auto_increment primary key not null,
circle_id int(11),
user_id int(11),
start_time date
);
CREATE TABLE circle_share2
(
circle_id int(11),
user_id int(11),
start_time date,
primary key(circle_id , user_id)
);
What are the advantages of using table share1 over share2 ?
share2 has primary key of circle_id , user_id
and share1 has primary key id .
I checked 50 tables out of them none of the table is like share2 , Why developers are not preferred share2 ?