What does /* in MySQL means?


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)

Updated on: 30-Jul-2019

380 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements