How can I comment special \ commands in PostgreSQL’s psql commandline tool?

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)