Baidu AI Cloud
中国站

百度智能云

Data Warehouse

Comments

Doris supports the SQL comments.

  • Single-line comments: Statements beginning with may be recognized as comments and ignored. Single-line coments can be made independently or appear after partial or complete statements of other statements.
  • Multi-line comments: The text between '/*’ and '*/’ is recognized as comments and ignored. A multiline comment can occupy a single line or multiple lines, or appear in the middle, front, or end part of other statements.

Example:

mysql> -- This line is a comment about a query
mysql> select ...
mysql> /*
    /*> This is a multi-line comment about a query.
    /*> */
mysql> select ...
mysql> select * from t /* This is an embedded comment about a query. */ limit 1;
mysql> select * from t -- This is an embedded comment about a multi-line command.
 -> limit 1;
Previous
Alias
Next
Data Type