Created
February 1, 2013 21:55
-
-
Save plasticbrain/4694425 to your computer and use it in GitHub Desktop.
Get the last accessed tables from database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT table_schema AS DatabaseName, | |
| table_name AS TableName, | |
| update_time AS LastAccessTime, | |
| check_time AS LastCheckTime | |
| FROM information_schema.tables | |
| WHERE update_time < 'yyyy-mm-dd' | |
| GROUP BY table_schema | |
| ORDER BY update_time ASC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment