Home > Database > Mysql Tutorial > body text

How to comment in mysql workbench

WBOY
Release: 2022-05-19 16:49:59
Original
3761 people have browsed it

Comment method in mysql workbench: 1. Use "# space comment" and "- space comment" to make single-line comments. The syntax is "# comment content" and "-- comment content"; 2. Use " /*Comment*/" to make multi-line comments, the syntax is "/*comment content*/".

How to comment in mysql workbench

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

How to comment in mysql workbench

The following introduces several methods of writing comments in MySQL Workbench, so that you can understand the meaning of the code directly by looking at the code later.

1. Single line comment

1.# Space comment

For example:

create database test;  # 创建名为test的数据库
Copy after login

2. – Space comment

For example:

create database cda;    -- 创建名为test的数据库
Copy after login

2. Multi-line comment

/* Comments*/

For example:

/*
这是
创建数据库
的方式
*/
Copy after login

The middle three lines are comments.

How to comment in mysql workbench

Recommended learning: mysql video tutorial

The above is the detailed content of How to comment in mysql workbench. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template