SQL Comments
SQL statements support two types of comments:
Single-line Comments
Starting with --, everything until the end of the line is ignored.
Multi-line Comments
Starting with /* and ending with */, everything in between is ignored. Multi-line comments support nesting.
Notes
- Comments can appear anywhere in a SQL statement.
- Single-line comments start with
--and end at the line break; no closing marker is needed. - Multi-line comments must have matching
/*and*/.
