From f12a9d7291e93332433275f05f29f655f1839191 Mon Sep 17 00:00:00 2001 From: "LEGION-R9000P\\12241" Date: Sat, 11 Mar 2023 00:13:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/PowerDesigner.md | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/source/_posts/PowerDesigner.md b/source/_posts/PowerDesigner.md index 759f95a..1c48951 100644 --- a/source/_posts/PowerDesigner.md +++ b/source/_posts/PowerDesigner.md @@ -36,6 +36,8 @@ New 选择要修改的DBMS ## 根据Name生成Comment +### SQL Server + Tools -> Resources -> DBMS... ![image-20221207095510030](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221207095510030.png)会弹出DBMS 列表 @@ -101,3 +103,52 @@ Database -> Generate Database ![image-20221207101314310](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221207101314310.png) 成功生成 + +### MySQL + +Database -> Edit Current DBMS... + +![image-20230310235910566](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230310235910566.png) + +#### 表注释 + +左侧菜单 Script -> Objects -> Table -> TableComment + +![image-20230311000046142](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230311000046142.png) + +```tex +alter table [%QUALIFIER%]%TABLE% comment %.60qA:COMMENT% +``` + +#### 字段注释 + +左侧菜单 Script -> Objects -> Column -> Add + +![image-20230311000912484](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230311000912484.png) + +将 + + +```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 + +![image-20230311001120719](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230311001120719.png) + + + +出现Database Generation屏幕:在Format tab页中,勾选Generate name in empty comment + +单击确定就可以生成相应的代码,代码中就会出现上面的注释了。 + +![image-20230311001246849](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230311001246849.png) From 03435c7aa137c21b72f6a7cebe15c1b583401af4 Mon Sep 17 00:00:00 2001 From: "LEGION-R9000P\\12241" Date: Mon, 13 Mar 2023 00:20:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/Linux.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_posts/Linux.md b/source/_posts/Linux.md index c929af5..b5f6fea 100644 --- a/source/_posts/Linux.md +++ b/source/_posts/Linux.md @@ -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:说明当前文件是一个目录(- 代表的是文件)