Merge branch 'master' of https://gitee.com/wenyongda/xiaoda-blog-source
This commit is contained in:
commit
51a4707a5f
@ -130,6 +130,17 @@ systemctl status mysqld
|
||||
Mysql:mysqld
|
||||
systemctl status network
|
||||
|
||||
### 网络状态:
|
||||
|
||||
```shell
|
||||
# -l或--listening 显示监控中的服务器的Socket
|
||||
# -n或--numeric 直接使用IP地址,而不通过域名服务器。
|
||||
# -p或--programs 显示正在使用Socket的程序识别码和程序名称。
|
||||
netstat -lnp | grep 8080
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 文件详情:(以home目录为例)
|
||||
|
||||
d:说明当前文件是一个目录(- 代表的是文件)
|
||||
|
||||
@ -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