Get the App
SLTechnology News&Howtos  ›  Database  › 

Mysql statements to add columns, modify column names, column properties, and delete columns

Shulou Source: shulou.com Published: 2022-05-31 18:00:47 10月05日 Update

This article mainly explains the "mysql add columns, modify column names, column attributes and delete column statements", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "mysql add columns, modify column names, column attributes and delete column statements" it!

Add columns, modify column names, column properties, and delete column statements

Mysql modifies table name, column type, adds table column, deletes table column

Alter table test rename test1;-- modify the table name

Alter table test add column name varchar (10);-- add table columns

Www.2cto.com

Alter table test drop column name;-Delete table columns

Alter table test modify address char (10)-- modify the table column type

| | alter table test change address address char (40) |

Alter table test change column address address1 varchar (30)-- modify the table column name

Thank you for your reading, the above is the "mysql add columns, modify column names, column properties and delete column statements" of the content, after the study of this article, I believe you on mysql to add columns, modify column names, column attributes and delete column statements this problem has a more profound understanding, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Attributes sentences learning content types that is ideas situations articles more knowledge knowledge points articles follow questions practice push research verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn MySQL Shulou Technology Shulou Information