Changing the type of a primary key column
suggest changeALTER TABLE fish_data.fish DROP PRIMARY KEY;
ALTER TABLE fish_data.fish MODIFY COLUMN fish_id DECIMAL(20,0) NOT NULL PRIMARY KEY;
An attempt to modify the type of this column without first dropping the primary key would result in an error.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents