The
INFORMATION_SCHEMA TABLE_PRIVILEGES
Table
1726
• The
UNIQUE
and
PRIMARY KEY
information is about the same as what you get from the
Key_name
field in the output from
SHOW INDEX
when the
Non_unique
field is
0
.
• The
CONSTRAINT_TYPE
column can contain one of these values:
UNIQUE
,
PRIMARY KEY
,
FOREIGN KEY
,
CHECK
. This is a
CHAR
(not
ENUM
) column. The
CHECK
value is not available until we
support
CHECK
.
19.14. The
INFORMATION_SCHEMA TABLE_PRIVILEGES
Table
The
TABLE_PRIVILEGES
table provides information about table privileges. This information comes
from the
mysql.tables_priv
grant table.
INFORMATION_SCHEMA
Name
SHOW
Name
Remarks
GRANTEE
'user_name'@'host_name'
value
TABLE_CATALOG
NULL
TABLE_SCHEMA
TABLE_NAME
PRIVILEGE_TYPE
IS_GRANTABLE
Notes:
•
PRIVILEGE_TYPE
can contain one (and only one) of these values:
SELECT
[578]
,
INSERT
[577]
,
UPDATE
[578]
,
REFERENCES
[577]
,
ALTER
[576]
,
INDEX
[577]
,
DROP
[577]
,
CREATE VIEW
[577]
.
The following statements are not equivalent:
SELECT ... FROM INFORMATION_SCHEMA.TABLE_PRIVILEGES
SHOW GRANTS ...
19.15. The
INFORMATION_SCHEMA TRIGGERS
Table
The
TRIGGERS
table provides information about triggers. You must have the
SUPER
[578]
privilege to
access this table. You can see results only if you have the
SUPER
[578]
privilege).
INFORMATION_SCHEMA
Name
SHOW
Name
Remarks
TRIGGER_CATALOG
NULL
TRIGGER_SCHEMA
TRIGGER_NAME
Trigger
EVENT_MANIPULATION
Event
EVENT_OBJECT_CATALOG
NULL
EVENT_OBJECT_SCHEMA
EVENT_OBJECT_TABLE
Table
ACTION_ORDER
0
ACTION_CONDITION
NULL
ACTION_STATEMENT
Statement
ACTION_ORIENTATION
ROW
ACTION_TIMING
Timing
ACTION_REFERENCE_OLD_TABLE
NULL
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...