8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

7.5.4 查询属性组件7.5.4 Query Attribute Components

组件服务提供对查询属性的访问(参见 第 11.6 节,“查询属性”)。query_attributes 组件使用此服务来提供在 SQL 语句中访问查询属性的功能。A component service provides access to query attributes (see Section 11.6, “Query Attributes”). The query_attributes component uses this service to provide access to query attributes within SQL statements.

  • 目的:实现 mysql_query_attribute_string() 函数,该函数接受属性名称作为参数并返回属性值的字符串,如果属性不存在,则返回 NULL。Purpose: Implements the mysql_query_attribute_string() function that takes an attribute name argument and returns the attribute value as a string, or NULL if the attribute does not exist.

  • 统一资源名称:file://component_query_attributesURN: file://component_query_attributes

希望整合与 query_attributes 相同的查询属性组件服务的开发者,应查阅 MySQL 源代码发行版中的 mysql_query_attributes.h 文件。Developers who wish to incorporate the same query-attribute component service used by query_attributes should consult the mysql_query_attributes.h file in a MySQL source distribution.