commit 0ce3a0ccdf36a649ba86482811952b0b9c9599e7 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..0c0f99a --- /dev/null +++ b/PostgreSQL/common.sql @@ -0,0 +1,4 @@ +-- 修改用户的密码 +alter user postgres with password 'PostgreSQL20868354'; +-- 查询所有用户 +select * from pg_catalog.pg_user;