当前位置:Gxlcms > mysql > Howtoremoveauto_incrementfromcolumninmysql_MySQL

Howtoremoveauto_incrementfromcolumninmysql_MySQL

时间:2021-07-01 10:21:17 帮助过:13人阅读

Alter table table_name DROP PRIMARY KEY,
change column_name column_name datatype(length) definition


Consider the example:
The structure of table1 in database new look like this:
remove auto increment from column in mysql using alter, drop and change mysql command
Now we are going to remove auto increment from column 'No' in mysql table 'table1'. The mysql query is:

人气教程排行