Re: When to use COMMENT vs --

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: When to use COMMENT vs --
Дата
Msg-id CAFj8pRBVh+Drmv6ZsnB72PTn9ct7WJo=j7m8ZmyMQ7iRGVsQUA@mail.gmail.com
обсуждение исходный текст
Ответ на When to use COMMENT vs --  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general


2016-12-07 16:57 GMT+01:00 Rich Shepard <rshepard@appl-ecosys.com>:
  I have used '-- ' to enter comments about tables or columns and am curious
about the value of storing comments in tables using the COMMENT key word.
When is the latter more appropriate than the former?

Description entered with COMMENT statements is persistently saved in database system catalogue - see table pg_description. You can get the comment for any database object.

Comments like '--' or '/* ... */ are comments in source code, and they are just ignored in processing.

Regards

Pavel
 

TIA,

Rich


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Rich Shepard
Дата:
Сообщение: When to use COMMENT vs --
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: When to use COMMENT vs --