本文以mysql为例
包->数据库工程->编辑DDL模板
修改数据库字段使用别名选择Mysql->DDL Column Comment
%if ddlOptionCommentLevel != "Column" and ddlOptionCommentLevel != "All"%
%endTemplate%
$columnComment = %ddlColumnComment%
%if $columnComment==""%
$columnComment = %ddlColumnAlias%
%endIf%
%if $columnComment!=""%
COMMENT '%REPLACE($columnComment, "'", "''")%'
%endIf%
%if ddlOptionCommentLevel != "Table" and ddlOptionCommentLevel != "Column" and ddlOptionCommentLevel != "All"%
%endTemplate%
$tableComment=%ddlTableLevelComment%
%if $tableComment==""%
$tableComment = %ddlTableAlias%
%endIf%
%if $tableComment != ""%
COMMENT='%REPLACE($tableComment, "'", "''")%'
%endIf%
如发现修改后不起作用确认此处是否一致: