How can I convert a signed int column to unsigned in MySQL?
I set a column to signed in CREATE TABLE
and need to set it to UNSIGNED
now.
Syntax:
ALTER TABLE tbl_name MODIFY [COLUMN] col_name column_definition [FIRST | AFTER col_name]
Example:
ALTER TABLE tbl_name MODIFY col_name bigint(20) unsigned NOT NULL default '0';
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments