<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="query-attribute-components">
      </a>
      7.5.4 Query Attribute Components
     </h3>
    </div>
   </div>
  </div>
  <p>
   A component service provides access to query attributes (see
   <a class="xref" href="query-attributes.html" title="11.6 Query Attributes">
    Section 11.6, “Query Attributes”
   </a>
   ). The
   <code class="literal">
    query_attributes
   </code>
   component uses this service to
      provide access to query attributes within SQL statements.
  </p>
  <a class="indexterm" name="idm46045257175296">
  </a>
  <a class="indexterm" name="idm46045257174208">
  </a>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      Purpose: Implements the
      <a class="link" href="query-attributes.html#function_mysql-query-attribute-string">
       <code class="literal">
        mysql_query_attribute_string()
       </code>
      </a>
      function that takes an attribute name argument and returns the
          attribute value as a string, or
      <code class="literal">
       NULL
      </code>
      if the
          attribute does not exist.
     </p>
    </li>
    <li class="listitem">
     <p>
      URN:
      <code class="literal">
       file://component_query_attributes
      </code>
     </p>
    </li>
   </ul>
  </div>
  <p>
   Developers who wish to incorporate the same query-attribute
      component service used by
   <code class="literal">
    query_attributes
   </code>
   should consult the
   <code class="filename">
    mysql_query_attributes.h
   </code>
   file in a MySQL source distribution.
  </p>
 </div>
 <br/>
</div>
