Home > Database > Mysql Tutorial > What does /* mean in MySQL?

What does /* mean in MySQL?

WBOY
Release: 2023-09-23 19:21:05
forward
1900 people have browsed it

What does /* mean in MySQL?

This is a comment. /* is the beginning of the comment, */ is the end of the comment.

Let's implement and show how to create a comment

mysql> /* This is the first MySQL Program */
Copy after login

MySQL will ignore the above comment.

Let's look at an example. Here we have written comments

mysql> /*This table has information about person */
mysql> create table DemoTable
(
   PersonId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
   PersonName varchar(20),
   PersonAge int
);
Query OK, 0 rows affected (0.58 sec)
Copy after login
using /* and */

The above is the detailed content of What does /* mean in MySQL?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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