SQL Basics | SQL | Comments

Comments are used to explain logic or disable code. Comments do not affect the code. SQL provides two types of comments.

Single-line comment

A single-line comment uses --.

--Select all:
SELECT * FROM customer;

Multi-line comment

Everything from /* to */ is treated as a comment.

/*Select all the columns
of all the records
in the customers table:*/
SELECT * FROM customer;