提交
This commit is contained in:
parent
ea13fc70c6
commit
f12a9d7291
@ -36,6 +36,8 @@ New 选择要修改的DBMS
|
||||
|
||||
## 根据Name生成Comment
|
||||
|
||||
### SQL Server
|
||||
|
||||
Tools -> Resources -> DBMS...
|
||||
|
||||
会弹出DBMS 列表
|
||||
@ -101,3 +103,52 @@ Database -> Generate Database
|
||||

|
||||
|
||||
成功生成
|
||||
|
||||
### MySQL
|
||||
|
||||
Database -> Edit Current DBMS...
|
||||
|
||||

|
||||
|
||||
#### 表注释
|
||||
|
||||
左侧菜单 Script -> Objects -> Table -> TableComment
|
||||
|
||||

|
||||
|
||||
```tex
|
||||
alter table [%QUALIFIER%]%TABLE% comment %.60qA:COMMENT%
|
||||
```
|
||||
|
||||
#### 字段注释
|
||||
|
||||
左侧菜单 Script -> Objects -> Column -> Add
|
||||
|
||||

|
||||
|
||||
将
|
||||
|
||||
|
||||
```tex
|
||||
%20:COLUMN% [%National%?national ]%DATATYPE%[%Unsigned%? unsigned][%ZeroFill%? zerofill][ [.O:[character set][charset]] %CharSet%][.Z:[ %NOTNULL%][%R%?[%PRIMARY%]][%IDENTITY%? auto_increment:[ default %DEFAULT%]][ comment %.q:@OBJTLABL%]]
|
||||
```
|
||||
|
||||
修改为
|
||||
|
||||
```tex
|
||||
%20:COLUMN% [%National%?national ]%DATATYPE%[%Unsigned%? unsigned][%ZeroFill%? zerofill][ [.O:[character set][charset]] %CharSet%][.Z:[ %NOTNULL%][%IDENTITY%? auto_increment:[ default %DEFAULT%]][ comment %.q:COMMENT%]]
|
||||
```
|
||||
|
||||
#### 代码生成
|
||||
|
||||
点击菜单Database-->enerate Database
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
出现Database Generation屏幕:在Format tab页中,勾选Generate name in empty comment
|
||||
|
||||
单击确定就可以生成相应的代码,代码中就会出现上面的注释了。
|
||||
|
||||

|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user