2023-07-06 17:28:43 +08:00
|
|
|
CREATE SCHEDULED QUERY sc1
|
|
|
|
CRON '0 */10 * * * ? *'
|
|
|
|
AS INSERT INTO t VALUES (1);
|
|
|
|
|
|
|
|
CREATE SCHEDULED QUERY t_analyze
|
|
|
|
CRON '0 */1 * * * ? *'
|
|
|
|
AS ANALYZE TABLE t
|
|
|
|
COMPUTE STATISTICS FOR COLUMNS;
|
|
|
|
|
|
|
|
CREATE SCHEDULED QUERY s_day
|
|
|
|
EVERY 2 DAY OFFSET BY 'offsetTs'
|
2023-07-10 10:37:19 +08:00
|
|
|
EXECUTED AS 'admin'
|
2023-07-06 17:28:43 +08:00
|
|
|
ENABLE
|
|
|
|
DEFINED AS INSERT INTO t VALUES (1);
|
|
|
|
|
|
|
|
CREATE SCHEDULED QUERY s_hour
|
|
|
|
EVERY HOUR AT '0:07:30'
|
2023-07-10 10:37:19 +08:00
|
|
|
EXECUTED AS 'query_user_1'
|
2023-07-06 17:28:43 +08:00
|
|
|
DISABLE
|
|
|
|
DEFINED AS INSERT INTO t VALUES (1);
|