Re: ISO something like "#if 0 ... #endif" for SQL code

From: Richard Huxton <dev(at)archonet(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: Kynn Jones <kynnjo(at)gmail(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: ISO something like "#if 0 ... #endif" for SQL code
Date: 2008-03-11 15:15:24
Message-ID: 47D6A20C.1090001@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gurjeet Singh wrote:
> If your sole objective is to comment out large chunks of SQL code, which in
> turn may have multi-line comments, then the simplest trick is to comment
> them using /* multi-line */ itself!
>
> The SQL standard, and Postgres, allow you to nest comments; some commercial
> RDBMS' do not provide this, and hence people think it's not possible in SQL.

"People" included me too. Thanks for the pointer Gurjeet.

-
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2008-03-11 15:19:27 Re: Database OID xxxxx now seems to belong to "foo"
Previous Message Justin 2008-03-11 15:14:26 Re: how do you write aggregate function