mysql, alter column remove primary key and auto incremement
If you need to remove the auto-increment and the primary key from the id column in a single SQL statement, this should do: ALTER TABLE companies DROP PRIMARY KEY, CHANGE id id int(11); In fact, you should be able to do everything in a single ALTER TABLE query: ALTER TABLE companies DROP PRIMARY KEY, CHANGE … Read more