myt/exporters/event.sql

20 lines
488 B
MySQL
Raw Normal View History

2020-11-14 01:38:56 +00:00
SELECT
2022-02-02 04:05:31 +00:00
`EVENT_SCHEMA` AS `schema`,
`EVENT_NAME` AS `name`,
`DEFINER` AS `definer`,
`EVENT_DEFINITION` AS `body`,
`EVENT_TYPE` AS `type`,
`EXECUTE_AT` AS `executeAt`,
`INTERVAL_VALUE` AS `intervalValue`,
`INTERVAL_FIELD` AS `intervalField`,
`STARTS` AS `starts`,
`ENDS` AS `ends`,
`STATUS` AS `status`,
`ON_COMPLETION` AS `onCompletion`,
`EVENT_COMMENT` AS `comment`,
`LAST_ALTERED` AS `modified`
FROM `information_schema`.`EVENTS`
2022-02-02 04:05:31 +00:00
WHERE ?
ORDER BY `name`