Use -- to comment a line. The -- (double-dash) comment style requires the second dash to be followed by at least one whitespace or control character (such as a space, tab, newline, and so on).
mysql>select100-99;-- This comment continues to the end of line+----------+|100-99|+----------+|1|+----------+1rowinset(0.01sec)
From a /* sequence to the following */ sequence, as in the C programming language. This syntax enables a comment to extend over multiple lines because the beginning and closing sequences need not be on the same line.
mysql>select100/* this is an in-line comment */-99;+----------+|100-99|+----------+|1|+----------+1rowinset(0.01sec)
Or:
mysql>select100/*this is an in-line comment*/-99;+----------+|100-99|+----------+|1|+----------+1rowinset(0.01sec)
Comments¶
This document describes the comment syntax supported by MatrixOne.
MatrixOne supports three comment styles:
Use
#character to comment a line.Use
--to comment a line. The--(double-dash) comment style requires the second dash to be followed by at least one whitespace or control character (such as a space, tab, newline, and so on).From a
/*sequence to the following*/sequence, as in the C programming language. This syntax enables a comment to extend over multiple lines because the beginning and closing sequences need not be on the same line.Or:
MatrixOne specific comment syntax¶
MatrixOne supports C comment style as below:
Or:
MatrixOne dose not support C comment style as below:
Or:
Constraints¶
MatrixOne does not support nested comments.