By Michael Nocito , data analyst · Updated August 11, 2026 SQL has two comment syntaxes and you will use both today. -- hides the rest of one line. /* opens a block that stays hidden until */ closes it, however many lines that takes.
Source: [Dev.to](https://dev.to/michaelnocito/how-to-comment-in-sql-and-and-the-two-traps-that-break-a-query-3bc)