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

MySQL foreign key setting method example

1. Foreign key setting method 1. In MySQL, in ord...

Example code for converting http to https using nginx

I am writing a small program recently. Because th...

How to build an ELK log system based on Docker

Background requirements: As the business grows la...

Node.js returns different data according to different request paths.

Table of contents 1. Learn to return different da...

Linux echo text processing command usage and examples

The description of echo in the Linux help documen...

Docker installs Elasticsearch7.6 cluster and sets password

Starting from Elasticsearch 6.8, free users are a...

Quick solution for forgetting MySQL8 password

Preface When we forget the MySQL database passwor...

How to hide and forge version number in Nginx

1. Use curl command to access by default: # curl ...

HTML+VUE paging to achieve cool IoT large screen function

Effect demo.html <html> <head> <me...

Example of using supervisor to manage nginx+tomcat containers

need: Use docker to start nginx + tomcat dual pro...

Detailed example of MySQL joint table update data

1.MySQL UPDATE JOIN syntax In MySQL, you can use ...

Practical operation of using any font in a web page with demonstration

I have done some research on "embedding non-...

Memcached method for building cache server

Preface Many web applications store data in a rel...