Multi-line Comments in SQL for PostgreSQL

Who knew? Not I! I shouldn’t confess, but just discovered multi-line comments in PostgreSQL:

-- This is a single line comment in SQL (I knew this already...)
/* Multi-line quotes use C
syntax.  Simple as that.  Surprised I hadn't googled (well duck duck goed) this before! */

Sadly, WordPress syntax highlighting doesn’t recognize this… . I think I can muddle through without it though.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.