Added mysql subpage

This commit is contained in:
Michael Schlapa
2020-03-25 12:52:18 +01:00
parent 1f270317bb
commit 67d4e12dd8
2 changed files with 20 additions and 0 deletions

19
MySQL/README.md Normal file
View File

@@ -0,0 +1,19 @@
# MySQL
## Query thats show essential information about MySQL tables
MySQL internal databases/schemas are excluded in `WHERE` statement.
```sql
SELECT
TABLE_SCHEMA,
TABLE_NAME,
TABLE_TYPE,
ENGINE,
ROW_FORMAT,
TABLE_ROWS
FROM
information_schema.tables
WHERE
TABLE_SCHEMA NOT IN ("performance_schema", "information_schema", "mysql");
```