Re: Comments in .sql files - Mailing list pgsql-general

From Richard Huxton
Subject Re: Comments in .sql files
Date
Msg-id 200308010846.18421.dev@archonet.com
Whole thread Raw
In response to Re: Comments in .sql files  ("Claudio Lapidus" <clapidus@hotmail.com>)
Responses Re: Comments in .sql files  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Friday 01 August 2003 04:54, Claudio Lapidus wrote:
> > 1.  It obviously doesn't like the # notation for comments.  What is the
>
> proper
>
> > way to put comments in schema files?
>
> Start the comment with two hyphens, like this:
>
> -- This is a comment. It will continue up to the newline.

Note that you can also do multi-line comments

/*
 like this
*/

That's not SQL standard AFAIK, but can be useful for commenting out sections
of a data dump.
--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: Table Stats
Next
From: Nico Latzer
Date:
Subject: Re: owner cant delete from table, permission denied