Re: [GENERAL] psql : Comment? - Mailing list pgsql-general

From Simon Drabble
Subject Re: [GENERAL] psql : Comment?
Date
Msg-id Pine.LNX.3.96.990813140104.10780A-100000@dragon
Whole thread Raw
In response to psql : Comment?  (Bruce Tong <zztong@laxmi.ev.net>)
List pgsql-general
On Fri, 13 Aug 1999, Bruce Tong wrote:

> I tend to put SQL into text files and then let a makefile run them through
> psql. I'd like to be able to put comments into these SQL files. Is there a
> character psql accepts as a comment?
>
>
> Bruce Tong                 |  Got me an office; I'm there late at night.

Standard(?) SQL method is to use -- , e.g.

CREATE TABLE foo (
    bar    int,    -- an integer
    baz    text    -- some text
);


Simon.


--
 "Don't anthropomorphise computers - they don't like it."

   Simon Drabble                      It's like karma for your brain.
   simon@eskimo.com


pgsql-general by date:

Previous
From: Bruce Tong
Date:
Subject: psql : Comment?
Next
From: "amy cheng"
Date:
Subject: how perl get trigger info?