Skip to content
Rene Saarsoo edited this page Aug 30, 2022 · 8 revisions

Standard SQL supports two types of comments:

-- single line comment

/* multi line
   block comment */

These are supported by all dialects.

Nested block comments

According to standard, block comments can also be nested, like:

/* main comment
   /* sub-comment */
*/

This is however only supported by some dialects:

Hash comments

Some dialects additionally support shell-style hash-comments:

# a comment

Links to comment syntax in all dialects

Clone this wiki locally