remove primary key from a table
alter table Player DROP PRIMARY KEY;
remove primary key from a table
alter table Player DROP PRIMARY KEY;
mysql change primary key
ALTER TABLE tableName MODIFY COLUMN id INT; /* First you should drop auto increment */
ALTER TABLE tableName DROP PRIMARY KEY; /* Dop primary key */
ALTER TABLE tableName ADD PRIMARY KEY (new_id); /* Set primary key to the new column */
ALTER TABLE tableName MODIFY COLUMN new_id INT AUTO_INCREMENT; /* Set auto increment to the new primary key */
remove primary key from table
ALTER TABLE Persons
DROP PRIMARY KEY;
mysql drop key
ALTER TABLE tbl_quiz_attempt_master
DROP INDEX `PRIMARY`;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us