mysql - analyse views

This commit is contained in:
Jan Prochazka
2020-06-28 21:19:51 +02:00
parent 4e1ee72d4d
commit a85ad0a1f0
5 changed files with 31 additions and 6 deletions

View File

@@ -2,7 +2,8 @@ module.exports = `
select
ROUTINE_NAME as pureName,
ROUTINE_TYPE as objectType,
LAST_ALTERED as modifyDate,
ROUTINE_DEFINITION as createSql
from information_schema.routines
where ROUTINE_SCHEMA = '#DATABASE#'
where ROUTINE_SCHEMA = '#DATABASE#' and ROUTINE_NAME =[OBJECT_NAME_CONDITION]
`;