Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report