📄 otl4_db2_unicode_examples.htm
字号:
<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta content="text/html; charset=iso-8859-1"
http-equiv="Content-Type">
<meta content="Sergei Kuchin" name="Author">
<meta content="Mozilla/4.77 [en] (Win95; U) [Netscape]"
name="GENERATOR">
<meta
content="OTL, Oracle, ODBC, DB2, CLI, database API, C++, Template Library"
name="KeyWords">
<title>OTL 4.0, Examples for DB2, Unicode</title>
</head>
<body>
<center>
<h1> OTL 4.0, Examples for DB2, Unicode <br>
</h1>
<div style="text-align: left;">The examples below show how to use OTL
with DB2 and Unicode based
strings. At the database level,, the string format may vary (UTF-8,
double byte character set (UCS-2), etc). At
least at the C++ level all string data gets converted into 2-byte
Unicode characters. In order to
enable OTL/DB2-CLI and Unicode, the following
#defines need to be defined: #define <a
href="otl3_compile.htm#OTL_DB2_CLI">OTL_DB2_CLI</a>, #define <a
href="otl3_compile.htm#OTL_UNICODE">OTL_UNICODE</a>. Before trying any
of the following examples, make sure that your DB2 database supports
Unicode.<br>
</div>
</center>
<ol>
<li><b><a href="otl4_ex265.htm">Example 265 (Simple
Unicode Insert/Select and VARCHAR strings)</a></b></li>
<li><b><a href="otl4_ex266.htm">Example 266 (Simple Unicode
Insert/Select and VARGRAPHIC strings)</a></b></li>
<li><b><a href="otl4_ex267.htm">Example 267 (Simple Unicode
Insert/Select with CLOB)</a></b></li>
<li><b><a href="otl4_ex268.htm">Example 268 (Simple Unicode
Insert/Select with DBCLOB)</a></b></li>
<li><b><a href="otl4_ex269.htm">Example 269 (Simple Unicode
Insert/Select with CLOB, and LOB streams)</a></b></li>
<li><b><a href="otl4_ex270.htm">Example 270 (Simple Unicode
Insert/Select with DBCLOB, and LOB streams)</a></b></li>
<li><b><a href="otl4_ex355.htm">Example
355 (Simple Unicode
Insert/Select and #define OTL_UNICODE_CHAR_TYPE)</a></b></li>
<li><b><a href="otl4_ex356.htm">Example
356 (Unicode
VARGRAPHIC Insert/Select and #define OTL_UNICODE_CHAR_TYPE)</a></b></li>
<li><b><a href="otl4_ex357.htm">Example
357 (Simple Unicode
Insert/Select and #define OTL_UNICODE_STRING_TYPE)</a></b></li>
<li><b><a href="otl4_ex358.htm">Example
358 (Unicode
VARGRAPHIC Insert/Select and #define OTL_UNICODE_STRING_TYPE)</a></b></li>
<li><b><a href="otl4_ex367.htm">Example
367 (Unicode CLOB Insert/Select and #define OTL_UNICODE_STRING_TYPE)</a></b></li>
<li><b><a href="otl4_ex673.htm">Example 673 (XML as
varchar_long/otl_long_unicode_string on SELECT, and
varchar_unicode_long/otl_long_string on
INSERT)</a></b></li>
<li><b><a href="otl4_ex674.htm">Example 674 (XML as
varchar_long/wstring on SELECT and varchar_long/wstring
on INSERT)</a></b></li>
</ol>
<b></b>
<hr style="width: 100%; height: 2px;">
<ul>
<ul>
</ul>
</ul>
<center>
<p><a href="otl3_compile.htm"></a><a href="otl3.htm">Contents </a><a
href="home.htm">Go Home</a></p>
</center>
<p>Copyright © 1996, 2008, Sergei Kuchin, email: <a
href="mailto:skuchin@aceweb.com">skuchin@aceweb.com</a>, <a
href="mailto:skuchin@gmail.com">skuchin@gmail.com
<script language="JavaScript"><!-- hide from old browsers
var modDate = new Date(document.lastModified)
document.write("<i> Last Updated:</i> " + (modDate.getMonth()+1) + "/" +
modDate.getDate() + "/" + "0"+(modDate.getYear())%100+".");
//-->
</script></a>.</p>
<p><i>Permission to use, copy, modify and redistribute this document
for any purpose is hereby granted without fee, provided that the above
copyright notice appear in all copies.</i> </p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5456201-1");
pageTracker._trackPageview();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -