commit 791fc19fc7786a4a7dcb1f4c87c95f41ea552209 Author: Fortern Date: Fri Aug 29 12:50:04 2025 +0800 init 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..0b257c8 --- /dev/null +++ b/PostgreSQL/common.sql @@ -0,0 +1,4 @@ +-- 修改用户的密码 +alter user postgres with password '123456'; +-- 查询所有用户 +select * from pg_catalog.pg_user;