SQL Comments

Single-line commentsEdit

Single line comments are preceded by --, and go until the end of the line:

FROM Employees -- this is a comment
WHERE FName = 'John'

Multi-line commentsEdit

Multi*line code comments are wrapped in /* ... */:

/* This query
   returns all employees */
FROM Employees

It is also possible to insert such a comment into the middle of a line:

SELECT /* all columns: */ *
FROM Employees