mysql - analyse views, procedures, functions

This commit is contained in:
Jan Prochazka
2020-06-28 13:58:56 +02:00
parent dc4fbe21de
commit 536ee6678f
5 changed files with 28 additions and 1 deletions

View File

@@ -3,5 +3,5 @@ select
TABLE_NAME as pureName,
case when ENGINE='InnoDB' then CREATE_TIME else coalesce(UPDATE_TIME, CREATE_TIME) end as alterTime
from information_schema.tables
where TABLE_SCHEMA = '#DATABASE#' and TABLE_NAME =[OBJECT_NAME_CONDITION];
where TABLE_SCHEMA = '#DATABASE#' and TABLE_TYPE='BASE TABLE' and TABLE_NAME =[OBJECT_NAME_CONDITION];
`;