12.16 Information Functions信息函数

Table 12.20 Information Functions信息函数

Name名称Description描述
BENCHMARK()Repeatedly execute an expression重复执行表达式
CHARSET()Return the character set of the argument返回参数的字符集
COERCIBILITY()Return the collation coercibility value of the string argument返回字符串参数的排序规则强制值
COLLATION()Return the collation of the string argument返回字符串参数的排序规则
CONNECTION_ID()Return the connection ID (thread ID) for the connection返回连接的连接ID(线程ID)
CURRENT_ROLE()Return the current active roles返回当前活动角色
CURRENT_USER(), CURRENT_USERThe authenticated user name and host name经过身份验证的用户名和主机名
DATABASE()Return the default (current) database name返回默认(当前)数据库名称
FOUND_ROWS()For a SELECT with a LIMIT clause, the number of rows that would be returned were there no LIMIT clause对于带有LIMIT子句的SELECT,如果没有LIMIT子句,则返回的行数
ICU_VERSION()ICU library versionICU库版本
LAST_INSERT_ID()Value of the AUTOINCREMENT column for the last INSERT上次插入的自动增量列的值
ROLES_GRAPHML()Return a GraphML document representing memory role subgraphs返回表示内存角色子图的GraphML文档
ROW_COUNT()The number of rows updated更新的行数
SCHEMA()Synonym for DATABASE()DATABASE()的同义词
SESSION_USER()Synonym for USER()USER()的同义词
SYSTEM_USER()Synonym for USER()USER()的同义词
USER()The user name and host name provided by the client客户端提供的用户名和主机名
VERSION()Return a string that indicates the MySQL server version返回指示MySQL服务器版本的字符串