MySQL 中的 /* 是什么意思?

mysqlmysqli database

这是一种注释。/* 是注释的开头,*/ 是注释的结尾。

让我们实现并展示如何创建注释

mysql> /* 这是第一个 MySQL 程序 */

MySQL 将忽略上述注释。

让我们看一个例子。在这里,我们用 /* 和 */ 写了一条注释

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)

相关文章