标签:fill bms har isa ima col data bin nal
当前powerDesign版本:16.6
列上指定:Collation = utf8_general_ci
但是SQL脚本中,列字段没有显示Collect
-------------------------------------------------------------
工具栏-》database-》edit current DBMS
然后,选中:MYSQL50::Script\Objects\Column\Add
脚本中新增如下表达式:[ [COLLATE] %Collate%]
修改前:
%20:COLUMN% [%National%?national ]%DATATYPE%[%Unsigned%? unsigned][%ZeroFill%? zerofill][ [.O:[character set][charset]] %CharSet%][.Z:[ %NOTNULL%][%R%?[%PRIMARY%]][%IDENTITY%? auto_increment:[ default %DEFAULT%]][%R%?[ comment %.q:@OBJTLABL%]: %generatedComment%]]
修改后:
%20:COLUMN% [%National%?national ]%DATATYPE%[%Unsigned%? unsigned][%ZeroFill%? zerofill][ [.O:[character set][charset]] %CharSet%][ [COLLATE] %Collate%][.Z:[ %NOTNULL%][%R%?[%PRIMARY%]][%IDENTITY%? auto_increment:[ default %DEFAULT%]][%R%?[ comment %.q:@OBJTLABL%]: %generatedComment%]]
-------------------------------------------------------------------
设置表的默认引擎和字符集
工具栏-》database-》edit current DBMS
然后,选中:MYSQL50::Script\Objects\Table\Options
ENGINE = %s : list = BDB | HEAP | ISAM | InnoDB | MERGE | MRG_MYISAM | MYISAM, default = InnoDB
DEFAULT CHARACTER SET = %s : list = utf8 | gbk, default = utf8
COLLATE = %s : list = utf8_bin | utf8_general_ci | gbk_bin | gbk_chinese_ci, default = utf8_general_ci
PowerDesign16.6支持Mysql的生成sql脚本中包含Collate信息
标签:fill bms har isa ima col data bin nal
原文地址:https://www.cnblogs.com/huahua035/p/10098674.html