NULL.
Syntax
Parameters
Examples
Add a comment on a table:- Using the
rw_descriptiontable:
- Using the
SHOW COLUMNSorDESCRIBEcommand:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You can use the COMMENT ON command to add comments on tables or columns in RisingWave. Comments are stored as metadata of tables or columns.
NULL.
COMMENT ON <object_type> <relation_name>.<object_name> IS <comment>
| Parameter | Notes |
|---|---|
| object_type | Type of the object that you want to add comments to. Allowed values: TABLE, COLUMN. |
| relation_name.object_name | Name of the object that you want to add comments to. For columns, you also need to specify the table name. |
| comment | Comment that you want to add. |
COMMENT ON TABLE t1 IS 'table to store traffic data';
COMMENT ON COLUMN t1.v1 IS 'column for the duration of the trip';
COMMENT ON table t1 IS NULL;
rw_description table:SELECT * FROM rw_description;
------
objoid | classoid | objsubid | description
--------+----------+----------+-------------------------------------
1001 | 41 | | table to store traffic data
1001 | 41 | 1 | column for the duration of the trip
1001 | 41 | 2 |
1001 | 41 | 0 |
SHOW COLUMNS or DESCRIBE command:SHOW COLUMNS FROM t1;
DESCRIBE t1;
Was this page helpful?