sql set primary keyprimary foreign key relationship