in table edit mode, you can select multiple fields by holding the caps key and then with a ctrl+click designate these fields as the primary key.