Comment
COMMENT
COMMENT ON (TABLE | COLUMN) <object_name> IS (<string_literal> | NULL);Examples
CREATE TABLE employees (id INT, salary BIGINT);
-- Add a comment to the 'employees' table
COMMENT ON TABLE employees IS 'This table stores employee information';
-- Add a comment to the 'salary' column
COMMENT ON COLUMN employees.salary IS 'Stores the salary of the employee';SHOW CREATE TABLE employees;
CREATE TABLE employees /* This table stores employee information */ (
id INTEGER,
salary BIGINT /* Stores the salary of the employee */);
1 rows returned.Last updated
Was this helpful?

