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

How mysql modifies comments

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article mainly introduces mysql how to modify the notes, the article is very detailed, has a certain reference value, interested friends must read it!

Modification method: 1, use "alter table table name comment 'comment content';" statement, you can modify the comments of the table; 2, use "alter table table name modify column field name type comment 'comment content';" statement, you can modify the comments of the field.

The operating environment of this tutorial: windows7 system, mysql8 version, Dell G3 computer.

Write comments when creating a table and use the comment keyword

Syntax:

Create table table name (field name type comment 'comments for fields') comments for comment=' table'

Check it out

Modify the comments of the table

Alter table table name comment 'comments for modified table'

Modify the comments of the field

Alter table table name modify column field name field type comment 'modified field comments'

The above is all the contents of the article "how to modify the Notes in mysql". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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