myt/exporters/view.sql

12 lines
281 B
SQL
Executable File

SELECT
`TABLE_NAME` AS `name`,
`VIEW_DEFINITION` AS `definition`,
`CHECK_OPTION` AS `checkOption`,
`IS_UPDATABLE` AS `isUpdatable`,
`DEFINER` AS `definer`,
`SECURITY_TYPE` AS `securityType`
FROM `information_schema`.`VIEWS`
WHERE `TABLE_SCHEMA` = ?
ORDER BY `name`