How to have a primary key to 2 colums SQL code example Example: create id to primary using query ALTER TABLE lead_offer_notes ADD PRIMARY KEY (id);