From 0ce3a0ccdf36a649ba86482811952b0b9c9599e7 Mon Sep 17 00:00:00 2001 From: Fortern Date: Fri, 29 Aug 2025 12:50:04 +0800 Subject: [PATCH] init --- .gitignore | 2 ++ MySQL/common.sql | 8 ++++++++ PostgreSQL/common.sql | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 MySQL/common.sql create mode 100644 PostgreSQL/common.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..706fd07 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.vscode diff --git a/MySQL/common.sql b/MySQL/common.sql new file mode 100644 index 0000000..8944691 --- /dev/null +++ b/MySQL/common.sql @@ -0,0 +1,8 @@ +# InnoDB引擎页大小 +show global status like 'Innodb_page_size'; + +# 查询用户 +select * from mysql.user; + +# 查询表的创建语句 +SHOW CREATE TABLE sku.person; diff --git a/PostgreSQL/common.sql b/PostgreSQL/common.sql new file mode 100644 index 0000000..0c0f99a --- /dev/null +++ b/PostgreSQL/common.sql @@ -0,0 +1,4 @@ +-- 修改用户的密码 +alter user postgres with password 'PostgreSQL20868354'; +-- 查询所有用户 +select * from pg_catalog.pg_user;