What does /* in MySQL means?

MySQLMySQLi Database

This is a type of comment. The /* is the beginning of a comment and */ is the end of comment.

Let us implement and display how to create a comment

mysql> /* This is the first MySQL Program */

MySQL will ignore the above comment.

Let us see an example. Here, we have written a comment with /* and */

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)
raja
Published on 29-Apr-2019 11:14:04
Advertisements