In this article, we will learn how to use the Comments in SQL.
Comments can be used to explain sections of SQL statements, and to make it more readable. It can also be used to prevent execution when testing alternative SQL statements.
Single line comments start with two hyphens (- -).
--Returns all Articles. SELECT * FROM Article;
Multi-line comments start with /* and end with */.
/*Returns all the columns in the Article table.*/ SELECT * FROM Article;
Also, check How To Use WHILE Loop In SQL