What are SQL comments?

Asked: Apr 14, 2023

Comments are explanations or annotations in SQL queries that are readable by programmers. It's used to make SQL statements easier to understand for humans. During the parsing of SQL code, it will be ignored. Comments can be written on a single line or across several lines.
Single Line Comments: It starts with two consecutive hyphens (--).
Multi-line Comments: It starts with /* and ends with */.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!