Think before you speak, read before you think.

mysql为表添加主键

添加主键

ALTER TABLE `checkurl` ADD PRIMARY KEY(`id`);

设置主键为自增

alter table `checkurl` modify id int(255) AUTO_INCREMENT PRIMARY KEY;

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *