You created a table in which the column with specific definitions in mysql. You created table column with auto increment. To add auto increment to existing column, visit add-auto-increment-to-existing-column in mysql. Then how can you remove it from column in mysql. The following mysql query is used to remove auto increment from column in mysql.
change No No int(5) NOT NULL
Now your structure look like this:
Now you can see the column name 'No' is normal. There is no auto increment.
Related Post:
Mysql Query:
Alter table table_name DROP PRIMARY KEY,
change column_name column_name datatype(length) definition
Alter table table1 DROP PRIMARY KEY,change column_name column_name datatype(length) definition
change No No int(5) NOT NULL
Now your structure look like this:
Now you can see the column name 'No' is normal. There is no auto increment.
Related Post:
Change column name in mysql
Change column size in mysql table
Delete column in mysql table
Add column after specific field in mysql table
Move columns in mysql table
Change column size in mysql table
Delete column in mysql table
Add column after specific field in mysql table
Move columns in mysql table
change column datatype in mysql
Change table name in mysql
Add primary key to existing column in mysql
how to add auto increment to existing column in mysql
How to reset auto increment initial value in mysql
How to use order by before group by in mysql
Select distinct values in mysql
Change table name in mysql
Add primary key to existing column in mysql
how to add auto increment to existing column in mysql
How to reset auto increment initial value in mysql
How to use order by before group by in mysql
Select distinct values in mysql
Thank you very much. Its very helpful to me...
ReplyDeleteNice article... Very useful..
ReplyDeleteCan't DROP 'PRIMARY'; check that column/key exists
ReplyDelete