mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-02 10:26:08 +00:00
处理MySQL的引擎和字符集
This commit is contained in:
@@ -59,6 +59,10 @@ public class GenerateSqlUtils {
|
||||
}
|
||||
|
||||
retval.append(")").append(Const.CR);
|
||||
if (DatabaseTypeEnum.MYSQL == type) {
|
||||
retval.append("ENGINE=InnoDB DEFAULT CHARSET=utf8").append(Const.CR);
|
||||
}
|
||||
|
||||
return db.formatSQL(retval.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user