From fe6f53c18766f99b3bea45e4b28bf0e50680f00c Mon Sep 17 00:00:00 2001 From: Fortern Date: Mon, 1 Sep 2025 04:31:16 +0800 Subject: [PATCH] update --- MySQL/common.sql | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/MySQL/common.sql b/MySQL/common.sql index 8944691..d010b81 100644 --- a/MySQL/common.sql +++ b/MySQL/common.sql @@ -2,7 +2,14 @@ show global status like 'Innodb_page_size'; # 查询用户 -select * from mysql.user; +select * +from mysql.user; # 查询表的创建语句 -SHOW CREATE TABLE sku.person; +show create table sku.person; + +# 查询某个表占用的空间 +select concat(round(sum(data_length / 1024 / 1024), 2), 'MB') as size +from information_schema.tables +where table_schema = 'fortern_qqnt' + and table_name = 'group_msg_table';