Comments in SQL

Comments are primarily used to make SQL scripts clear and maintainable, and can be added anywhere in an SQL script.

Line comments begin with the characters -- (two hyphens), indicating that the remaining part of the current line is a comment.

Block comments are delimited by /* and */, and can span across several lines. All characters between the delimiters are ignored. Characters after the closing delimiter will be interpreted as code.