2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/comment.sgml,v 1.1 1999/10/26 03:48:58 momjian Exp $
6 <refentry id="SQL-COMMENT">
8 <refentrytitle id="SQL-COMMENT-TITLE">
11 <refmiscinfo>SQL - Language Statements</refmiscinfo>
18 Add comment to an object
23 <date>1999-07-20</date>
28 [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ]
29 <replaceable class="PARAMETER">object_name</replaceable> |
30 COLUMN <replaceable class="PARAMETER">table_name</replaceable>.<replaceable class="PARAMETER">column_name</replaceable>|
31 AGGREGATE <replaceable class="PARAMETER">agg_name</replaceable> <replaceable class="PARAMETER">agg_type</replaceable>|
32 FUNCTION <replaceable class="PARAMETER">func_name</replaceable> (<replaceable class="PARAMETER">arg1</replaceable>, <replaceable class="PARAMETER">arg2</replaceable>, ...)|
33 OPERATOR <replaceable class="PARAMETER">op</replaceable> (<replaceable class="PARAMETER">leftoperand_type</replaceable> <replaceable class="PARAMETER">rightoperand_type</replaceable>) |
34 TRIGGER <replaceable class="PARAMETER">trigger_name</replaceable> ON <replaceable class="PARAMETER">table_name</replaceable>
35 ] IS <replaceable class="PARAMETER">'text'</replaceable>
38 <refsect2 id="R2-SQL-COMMENT-1">
40 <date>1999-10-25</date>
49 <term><replaceable class="PARAMETER">object_name, table_name,
50 column_name, agg_name, func_name, op, trigger_name</replaceable></term>
53 The name of the object to be be commented.
58 <term><replaceable class="PARAMETER">text</replaceable></term>
69 <refsect2 id="R2-SQL-COMMENT-2">
71 <date>1998-09-08</date>
80 <term><computeroutput>
82 </computeroutput></term>
85 Message returned if the table is successfully commented.
94 <refsect1 id="R1-SQL-COMMENT-1">
96 <date>1998-10-25</date>
102 <command>COMMENT</command> adds a comment to an object that can be
103 easily retrieved with <application>psql's</application>
104 <emphasize>\dd</emphasize> command.
105 To remove a comment, use <literal>''</literal>.
109 <refsect1 id="R1-SQL-COMMENT-2">
114 comment the table <literal>mytable</literal>:
117 COMMENT ON mytable IS 'This is my table.';
122 <refsect1 id="R1-SQL-COMMENT-3">
127 <refsect2 id="R2-SQL-COMMENT-4">
129 <date>1998-09-08</date>
135 There is no <command>COMMENT</command> in <acronym>SQL92</acronym>.
141 <!-- Keep this comment at the end of the file
146 sgml-minimize-attributes:nil
147 sgml-always-quote-attributes:t
150 sgml-parent-document:nil
151 sgml-default-dtd-file:"../reference.ced"
152 sgml-exposed-tags:nil
153 sgml-local-catalogs:"/usr/lib/sgml/catalog"
154 sgml-local-ecat-files:nil