Changing the type of a primary key column

suggest change
ALTER 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents