ibm-information-center/dist/eclipse/plugins/i5OS.ic.nls_5.4.0.1/rbagssqlgraphstrngcons.htm

77 lines
4.7 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="SQL graphic strings" />
<meta name="abstract" content="A graphic string is a sequence of double-byte characters that do not include shift-out or shift-in characters." />
<meta name="description" content="A graphic string is a sequence of double-byte characters that do not include shift-out or shift-in characters." />
<meta name="DC.Relation" scheme="URI" content="rbagssqlanddbchars.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbagssqlgraphstrngcons" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>SQL graphic strings</title>
</head>
<body id="rbagssqlgraphstrngcons"><a name="rbagssqlgraphstrngcons"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SQL graphic strings</h1>
<div><p>A graphic string is a sequence of double-byte characters that do
not include shift-out or shift-in characters.</p>
<p>The length of the string is the number of its characters. Like character
strings, graphic strings can be empty.</p>
<p>Every graphic string has a CCSID that identifies a double-byte coded character
set. If necessary, a graphic string is converted before it is used in an operation
with a graphic string that has a different CCSID.</p>
<div class="section"><h4 class="sectiontitle">SQL fixed-length and double-byte characters</h4><p>All
values of a fixed-length graphic-string column have the same length, which
is determined by the length attribute of the column. The length attribute
must be between 1 through 16383 inclusive.</p>
</div>
<div class="section"><h4 class="sectiontitle">SQL graphic-string constants</h4><p>A graphic-string constant
is a varying-length graphic string. The length of the specified string cannot
be greater than 16370.</p>
<p>In the normal form, the SQL delimiters and the
G or the N are SBCS characters. The SBCS apostrophe (') is the EBCDIC apostrophe,
X'7D'.</p>
<p>In the PL/I form, the apostrophes and the G are DBCS characters.
Two consecutive DBCS string delimiters are used to represent one string delimiter
within the string. Notice that this PL/I form is only valid for static statements
embedded in PL/I programs.</p>
<p>A hexadecimal graphic constant is also supported.
The form of the hexadecimal graphic constant is:</p>
<pre>GX'ssss'</pre>
<p>In
the constant, <span class="uicontrol">ssss</span> represents a string from 0 to 32766
hexadecimal digits. The number of characters between the string delimiters
must be an even multiple of 4. Each group of 4 digits represents a single
graphic character. The hexadecimal for shift-in and shift-out (X'0E' and X'0F')
are not included in the string.</p>
<p>The CCSID assigned to constants is the
DBCS CCSID associated with the CCSID of the source unless the source is encoded
in a foreign encoding scheme (such as ASCII). In this case, the CCSID assigned
to the constant is the DBCS CCSID associated with the default CCSID of the
application server when the SQL statement containing the constant is prepared.
If there is no DBCS CCSID associated with the CCSID of the source, the CCSID
is 65535.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagssqlanddbchars.htm" title="The basic symbols of keywords and operators in the SQL language are single-byte characters that are part of all character sets supported by the IBM relational database products. Characters of the language are classified as letters, digits, or special characters.">SQL and DBCS</a></div>
</div>
</div>
</body>
</html>