Implementation of adding remark information to mysql

Implementation of adding remark information to mysql

Preface

Some people have asked me some MySQL notes these days, so I have to write a blog post.

1. When creating a table, add table name notes and field notes

CREATE TABLE `healerjean_comment` (
 `id` bigint(20) NOT NULL AUTO_INCREMENT,
 `name` varchar(32) NOT NULL COMMENT 'Name Comment',
 `email` varchar(64) NOT NULL,
 `message` text,
 PRIMARY KEY (`id`),
 KEY `index_name` (`name`)
) COMMENT = 'Table name comments';

2. After the table is created, add table name notes and field notes

ALTER TABLE healerjean_comment COMMENT='Test index table';
ALTER table healerjean_comment MODIFY name VARCHAR(32) NOT NULL COMMENT 'Name comment'

3. View notes

show create table healerjean; 

WX20180727-161536

show full columns from healerjean; 

WX20180727-161454

This is the end of this article about how to add remark information to MySQL. For more information about how to add remark information to MySQL, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Return all table names, column names, data type notes of a database in Mysql

<<:  Detailed tutorial on installing pxc cluster with docker

>>:  HTML tags: sub tag and sup tag

Recommend

Detailed explanation of how to use Tomcat Native to improve Tomcat IO efficiency

Table of contents Introduction How to connect to ...

A detailed analysis and processing of MySQL alarms

Recently, a service has an alarm, which has made ...

Deleting files with spaces in Linux (not directories)

In our daily work, we often come into contact wit...

B2C website user experience detail design reference

Recently, when using Apple.com/Ebay.com/Amazon.co...

MySQL database migration quickly exports and imports large amounts of data

Database migration is a problem we often encounte...

Using js to implement the two-way binding function of data in Vue2.0

Object.defineProperty Understanding grammar: Obje...

Example of using JSX to build component Parser development

Table of contents JSX environment construction Se...

Embedded transplant docker error problem (summary)

After a long period of transplantation and inform...

Detailed explanation of real-time backup knowledge points of MySQL database

Preface The need for real-time database backup is...

MySQL 5.7.17 installation and use graphic tutorial

MySQL is a relational database management system ...

Ubuntu 20.04 turns on hidden recording noise reduction function (recommended)

Recently, when using kazam in Ubuntu 20.04 for re...

How to use webSocket to update real-time weather in Vue

Table of contents Preface About webSocket operati...

The process of installing MySQL 8.0.26 on CentOS7

1. First, download the corresponding database fro...

Application of Beautiful Style Sheets in XHTML+CSS Web Page Creation

This is an article written a long time ago. Now it...