Comment character/characters in postgres / postgresql / psql?
Solution 1:
According to PostgreSQL documentation, there are both the inline and the block style comments.
The inline style:
SELECT 23 AS test -- this is just a test
The block style:
/* The following is a very
* non-trivial SQL code */
SELECT 42 AS result
Solution 2:
In SQL comment starts with --
.