How to add a comment to a PostgreSQL table

13 sec read

If you have a table with the name transactions and you need to add a comment to this table for future references you can add a comment by using the code below, replacing the table name and the comment to suite your needs.

COMMENT ON TABLE "transaction" IS 'This table keeps a log of all orders that went through the website';

Last Updated On April 07, 2018

Leave a Reply

Notify of