25  SQL Comments

Normal sql comments are double dash – characters. They could start anywhere in the line and whatever written after – characters in that line is ignored by database engine. Comments can appear anywhere white space can come.

See below example

SELECT
 * -- here character * means all columns
FROM Employee;

C style /* */ multi line comments are also supported by a lot of different databases, like Sqlite comments, oracle comments and SQL Server.


/*
This is a 
Multi line
comment
*/