SQLite Comments
SQLite Comments
Comments explain parts of an SQL statement, or stop parts of a statement from running. SQLite ignores the comments.
Single Line Comments
A single line comment starts with --. Everything after it, to the end of the line, is ignored:
Example
A comment can also be at the end of a line:
SELECT * FROM Customers -- WHERE City = 'Berlin';
Try it Yourself »
Multi Line Comments
A multi line comment starts with /* and ends with */:
Example
/* Select all the columns
of all the records
in the Customers table: */
SELECT * FROM Customers;
Try it Yourself »
Example
A multi line comment can also hide a part of a line:
SELECT CustomerName, /*City,*/ Country
FROM Customers;
Try it Yourself »