How to Add Table Comments in SQL

In SQL, you can use the COMMENT keyword to add a comment to a table. For example:

CREATE TABLE table_name (
    column1 datatype,
    column2 datatype,
    ...
) COMMENT 'This is a table comment';

Another option is to add table comments using the ALTER TABLE statement.

ALTER TABLE table_name COMMENT 'This is a table comment';
bannerAds