MySQL/SHOW:修订间差异
来自康健生活
| 第52行: | 第52行: | ||
== information_schema == | == information_schema == | ||
{{Shc_out|<syntaxhighlight lang="mysql"> | {{Shc_out|<syntaxhighlight lang="mysql"> | ||
SELECT | SELECT * | ||
FROM information_schema.tables | FROM information_schema.tables | ||
WHERE table_name = 'user';</syntaxhighlight>|<syntaxhighlight lang="bash"> | WHERE table_name = 'user';</syntaxhighlight>|<syntaxhighlight lang="bash" highlight="2,9,16,23"> | ||
+------------+----------------+ | +---------------+--------------+------------+------------+--------+---------+ | ||
| | | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | TABLE_TYPE | ENGINE | VERSION | | ||
+------------+----------------+ | +---------------+--------------+------------+------------+--------+---------+ | ||
| user | | | def | mysql | user | BASE TABLE | MyISAM | 10 | | ||
| user | 2 | | | def | qnpm-local | user | BASE TABLE | InnoDB | 10 | | ||
| | | def | test | user | BASE TABLE | InnoDB | 10 | | ||
+------------+----------------+ | +---------------+--------------+------------+------------+--------+---------+ | ||
3 rows in set (0. | +------------+------------+----------------+-------------+-----------------+--------------+ | ||
| ROW_FORMAT | TABLE_ROWS | AVG_ROW_LENGTH | DATA_LENGTH | MAX_DATA_LENGTH | INDEX_LENGTH | | |||
+------------+------------+----------------+-------------+-----------------+--------------+ | |||
| Dynamic | 6 | 88 | 528 | 281474976710655 | 2048 | | |||
| Compact | 0 | 0 | 16384 | 0 | 32768 | | |||
| Compact | 12 | 1365 | 16384 | 0 | 0 | | |||
+------------+------------+----------------+-------------+-----------------+--------------+ | |||
+-----------+----------------+---------------------+---------------------+------------+ | |||
| DATA_FREE | AUTO_INCREMENT | CREATE_TIME | UPDATE_TIME | CHECK_TIME | | |||
+-----------+----------------+---------------------+---------------------+------------+ | |||
| 0 | NULL | 2021-08-12 15:48:03 | 2021-08-12 15:59:48 | NULL | | |||
| 10485760 | 2 | 2021-08-12 16:00:39 | NULL | NULL | | |||
| 0 | 16 | 2022-01-27 17:12:54 | NULL | NULL | | |||
+-----------+----------------+---------------------+---------------------+------------+ | |||
+-------------------+----------+----------------+-----------------------------+ | |||
| TABLE_COLLATION | CHECKSUM | CREATE_OPTIONS | TABLE_COMMENT | | |||
+-------------------+----------+----------------+-----------------------------+ | |||
| utf8_bin | NULL | | Users and global privileges | | |||
| utf8_general_ci | NULL | | user base info | | |||
| latin1_swedish_ci | NULL | | | | |||
+-------------------+----------+----------------+-----------------------------+ | |||
3 rows in set (0.00 sec) | |||
</syntaxhighlight>|mysql>}} | </syntaxhighlight>|mysql>}} | ||