information_schema系统表——EVENTS
2017-11-15 15:58
531 查看
调度计划事件信息表
The
provides information about scheduled events, which are discussed in Section 23.4,
“Using the Event Scheduler”. The
Notes:
The
is a nonstandard table.
is always
(database) to which this event belongs.
created the event, in
is the time zone used for scheduling the event and that is in effect within the event as it executes. The default value is
statements in the event's
in MySQL 5.7, this is always
This column is not to be confused with the column of the same name (now named
that existed in earlier MySQL versions.
statement making up the event's
in other words, the statement executed by this event.
either
is the
specified in the
included in the event's
example, if an event is created using
If the event's timing is determined by an
instead of an
the event is recurring), the value of this column is
this column contains the numeric portion of the event's
For a one-time event (that is, an event whose timing is determined by an
this column is
this column contains the units portion of the
governing the timing of the event. Thus, this column contains a value such as '
'
and so on.
For a one-time event (that is, an event whose timing is determined by an
this column is
the event was created or altered, and under which the event executes. For the permitted values, see Section 5.1.8,
“Server SQL Modes”.
includes a
contains the corresponding
As with the
value resolves any expressions used.
If there is no
the timing of the event, this column is
includes a
contains the corresponding
As with the
value resolves any expressions used.
If there is no
the timing of the event, this column is
or
creation of the event occurred on another MySQL server acting as a replication master and was replicated to the current MySQL server which is acting as a slave, but the event is not presently being executed on the slave. See Section 16.4.1.16,
“Replication of Invoked Features”, for more information.
was created. This is a
the event was last modified. This is a
If the event has not been modified since its creation, this column holds the same value as the
the event last executed. A
If the event has never executed, this column is
started. As a result, the
is never less than
if the event has one. If not, the value of this column is an empty string.
server on which the event was created; used in replication. The default value is 0.
of the
variable when the event was created.
of the
variable when the event was created.
the database with which the event is associated.
The
EVENTStable
provides information about scheduled events, which are discussed in Section 23.4,
“Using the Event Scheduler”. The
SHOW Namevalues correspond to column names of the
SHOW EVENTSstatement.
INFORMATION_SCHEMAName | SHOWName | Remarks |
---|---|---|
EVENT_CATALOG | def, MySQL extension | |
EVENT_SCHEMA | Db | MySQL extension |
EVENT_NAME | Name | MySQL extension |
DEFINER | Definer | MySQL extension |
TIME_ZONE | Time zone | MySQL extension |
EVENT_BODY | MySQL extension | |
EVENT_DEFINITION | MySQL extension | |
EVENT_TYPE | Type | MySQL extension |
EXECUTE_AT | Execute at | MySQL extension |
INTERVAL_VALUE | Interval value | MySQL extension |
INTERVAL_FIELD | Interval field | MySQL extension |
SQL_MODE | MySQL extension | |
STARTS | Starts | MySQL extension |
ENDS | Ends | MySQL extension |
STATUS | Status | MySQL extension |
ON_COMPLETION | MySQL extension | |
CREATED | MySQL extension | |
LAST_ALTERED | MySQL extension | |
LAST_EXECUTED | MySQL extension | |
EVENT_COMMENT | MySQL extension | |
ORIGINATOR | Originator | MySQL extension |
CHARACTER_SET_CLIENT | character_set_client | MySQL extension |
COLLATION_CONNECTION | collation_connection | MySQL extension |
DATABASE_COLLATION | Database Collation | MySQL extension |
The
EVENTStable
is a nonstandard table.
EVENT_CATALOG: The value of this column
is always
def.
EVENT_SCHEMA: The name of the schema
(database) to which this event belongs.
EVENT_NAME: The name of the event.
DEFINER: The account of the user who
created the event, in
'user_name
'@'host_name' format.
TIME_ZONE: The event time zone, which
is the time zone used for scheduling the event and that is in effect within the event as it executes. The default value is
SYSTEM.
EVENT_BODY: The language used for the
statements in the event's
DOclause;
in MySQL 5.7, this is always
SQL.
This column is not to be confused with the column of the same name (now named
EVENT_DEFINITION)
that existed in earlier MySQL versions.
EVENT_DEFINITION: The text of the SQL
statement making up the event's
DOclause;
in other words, the statement executed by this event.
EVENT_TYPE: The event repetition type,
either
ONE TIME(transient) or
RECURRING(repeating).
EXECUTE_AT: For a one-time event, this
is the
DATETIMEvalue
specified in the
ATclause of the
CREATE EVENTstatement used to create the event, or of the last
ALTER EVENTstatement that modified the event. The value shown in this column reflects the addition or subtraction of any
INTERVALvalue
included in the event's
ATclause. For
example, if an event is created using
ON SCHEDULE AT CURRENT_TIMESTAMP + '1:6' DAY_HOUR, and the event was created at 2006-02-09 14:05:30, the value shown in this column would be
'2006-02-10 20:05:30'.
If the event's timing is determined by an
EVERYclause
instead of an
ATclause (that is, if
the event is recurring), the value of this column is
NULL.
INTERVAL_VALUE: For recurring events,
this column contains the numeric portion of the event's
EVERYclause.
For a one-time event (that is, an event whose timing is determined by an
ATclause),
this column is
NULL.
INTERVAL_FIELD: For recurring events,
this column contains the units portion of the
EVERYclause
governing the timing of the event. Thus, this column contains a value such as '
YEAR',
'
QUARTER', '
DAY',
and so on.
For a one-time event (that is, an event whose timing is determined by an
ATclause),
this column is
NULL.
SQL_MODE: The SQL mode in effect when
the event was created or altered, and under which the event executes. For the permitted values, see Section 5.1.8,
“Server SQL Modes”.
STARTS: For a recurring event whose definition
includes a
STARTSclause, this column
contains the corresponding
DATETIMEvalue.
As with the
EXECUTE_ATcolumn, this
value resolves any expressions used.
If there is no
STARTSclause affecting
the timing of the event, this column is
NULL
ENDS: For a recurring event whose definition
includes a
ENDSclause, this column
contains the corresponding
DATETIMEvalue.
As with the
EXECUTE_ATcolumn, this
value resolves any expressions used.
If there is no
ENDSclause affecting
the timing of the event, this column is
NULL.
STATUS: One of the three values
ENABLED,
DISABLED,
or
SLAVESIDE_DISABLED.
SLAVESIDE_DISABLEDindicates that the
creation of the event occurred on another MySQL server acting as a replication master and was replicated to the current MySQL server which is acting as a slave, but the event is not presently being executed on the slave. See Section 16.4.1.16,
“Replication of Invoked Features”, for more information.
ON_COMPLETION: One of the two values
PRESERVEor
NOT PRESERVE.
CREATED: The date and time when the event
was created. This is a
TIMESTAMPvalue.
LAST_ALTERED: The date and time when
the event was last modified. This is a
TIMESTAMPvalue.
If the event has not been modified since its creation, this column holds the same value as the
CREATEDcolumn.
LAST_EXECUTED: The date and time when
the event last executed. A
DATETIMEvalue.
If the event has never executed, this column is
NULL.
LAST_EXECUTEDindicates when the event
started. As a result, the
ENDScolumn
is never less than
LAST_EXECUTED.
EVENT_COMMENT: The text of a comment,
if the event has one. If not, the value of this column is an empty string.
ORIGINATOR: The server ID of the MySQL
server on which the event was created; used in replication. The default value is 0.
CHARACTER_SET_CLIENT: The session value
of the
character_set_clientsystem
variable when the event was created.
COLLATION_CONNECTION: The session value
of the
collation_connectionsystem
variable when the event was created.
DATABASE_COLLATION: The collation of
the database with which the event is associated.
相关文章推荐
- information_schema系统表——ENGINES
- information_schema系统表——TABLE_CONSTRAINTS
- information_schema系统表——TABLE_PRIVILEGES
- INFORMATION_SCHEMA信息数据库----有时也称“数据词典”和“系统目录”
- SQL 利用INFORMATION_SCHEMA系统视图如何一步一步获取表的主外键信息
- mysql数据库系统数据库information_schema
- information_schema系统表——COLLATION_CHARACTER_SET_APPLICABILITY
- information_schema系统表——TRIGGERS
- information_schema系统表——FILES
- information_schema系统表——USER_PRIVILEGES
- 探讨SQL利用INFORMATION_SCHEMA系统视图如何获取表的主外键信息
- 二:MySQL中的 帮助 和 information_schema 数据库 - 系统的撸一遍MySQL
- information_schema系统表——CHARACTER_SETS
- information_schema系统表——PROCESSLIST
- information_schema系统表——COLUMNS
- information_schema系统表——GLOBAL_STATUS and SESSION_STATUS
- SQL 利用INFORMATION_SCHEMA系统视图如何一步一步获取表的主外键信息
- 探讨SQL利用INFORMATION_SCHEMA系统视图如何获取表的主外键信息
- information_schema.events 学习
- information_schema系统表——COLUMN_PRIVILEGES