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 Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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