Loading...

How do I comment out a block of code in MySQL?


Syntax Using /* and */ symbols In MySQL, a comment that starts with /* symbol and ends with */ and can be anywhere in your SQL statement. This method of commenting can span several lines within your SQL.

How do you comment multiple lines in MySQL?

Multi-line comments start with /* and end with */ . Any text between /* and */ will be ignored.

How do you comment out code in SQL?

The syntax for a comment in a line of SQL code is a double hyphen ( -- ) at the beginning of the line. The comment affects all of the SQL code in the line.

What is /* in MySQL?

This is a type of comment. The /* is the beginning of a comment and */ is the end of comment. MySQL will ignore the above comment.

Tagsadcod