mysqldump 导出数据默认是字段的 comment 和表的 comment 都带上了,例如:
CREATE TABLE `db_class_content` (
`class_id` int NOT NULL COMMENT '指向表db_class中的id字段',
`class_content_cn` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='导航详细信息表';
请问大神该如何导出不带 comment 的呢?希望导出成下面这样的:
CREATE TABLE `db_class_content` (
`class_id` int NOT NULL,
`class_content_cn` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
写个脚本正则过滤一下