Value-QString.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="QSTRING">
  5. <title>QSTRING<indexterm>
  6. <primary>QSTRING</primary>
  7. </indexterm></title>
  8. <para><emphasis
  9. role="bold">QSTRING[</emphasis><emphasis>n</emphasis><emphasis
  10. role="bold">]<indexterm>
  11. <primary>QSTRING value type</primary>
  12. </indexterm></emphasis></para>
  13. <para>A data-compressed variation of STRING that uses only 6-bits per
  14. character to reduce storage requirements for large strings. The character
  15. set is limited to capital letters A-Z, the numbers 0-9, the blank space, and
  16. the following set of special characters:</para>
  17. <programlisting>! " # $ % &amp; ' ( ) * + , - . / ; &lt; = &gt; ? @ [ \ ] ^ _</programlisting>
  18. <para>If <emphasis>n</emphasis> is omitted, the QSTRING is variable length
  19. to the size needed to contain the result of a cast or passed parameter. You
  20. may use set indexing into any QSTRING to parse out a substring.</para>
  21. <para>The upper size limit for any QSTRING value is 4GB.</para>
  22. <para>Example:</para>
  23. <programlisting>QSTRING12 CompanyName := 'LEXISNEXIS';
  24. // uses only 9 bytes of storage instead of 12</programlisting>
  25. <para>See Also: <link linkend="STRING">STRING</link>, <link
  26. linkend="LENGTH">LENGTH</link>, <link linkend="TRIM">TRIM</link>, <link
  27. linkend="Set_Ordering_and_Indexing">Set Ordering and Indexing</link>.</para>
  28. </sect1>