In MySQL Workbench you can add comments to tables and columns in a MySQL database.
Does Sqlite support adding comments to tables and columns?
When creating a table using sqlite (I'm using sqlite3
in python), the COMMENT
section is not supported.
This fails (works in full MySql syntax):
CREATE TABLE `Info` (
`Test` VARCHAR(512) NOT NULL COMMENT 'Column info here'
);
This works (no COMMENT
in the column declaration):
CREATE TABLE `Info` (
`Test` VARCHAR(512) NOT NULL
);