I am adding some new columns to a table and want to add documentation to the table DDL for future developers. How does one go about this?
Generic Syntax:
COMMENT ON {OBJECT} {OBJECTNAME} AS '{255 characters of text};
Detailed Syntax Examples:
COMMENT ON TABLE {DATABASE}.{TABLENAME} AS '{255 characters of text}';
COMMENT ON COLUMN {DATABASENAME}.{TABLENAME}.{COLUMNNAME} AS '{255 characters of text}';
COMMENT ON USER {USERNAME} AS '{255 characters of text}';
COMMENT ON DATABASE {DATABASENAME} AS '{255 characters of text}';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With