Re: Comments in .sql files

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Comments in .sql files
Дата
Msg-id 200308010846.18421.dev@archonet.com
обсуждение исходный текст
Ответ на Re: Comments in .sql files  ("Claudio Lapidus" <clapidus@hotmail.com>)
Ответы Re: Comments in .sql files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: Re: Table Stats
Следующее
От: Nico Latzer
Дата:
Сообщение: Re: owner cant delete from table, permission denied