forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
277 lines
25 KiB
HTML
277 lines
25 KiB
HTML
<a name="EN-US_TOPIC_0000001234200617"></a><a name="EN-US_TOPIC_0000001234200617"></a>
|
|
|
|
<h1 class="topictitle1">Transaction Management and Database Management</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164563_p17441144854012">This section describes how to migrate keywords and features related to MySQL transaction and database management.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_section135275238112"><h4 class="sectiontitle">Transaction Management</h4><ol id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_ol113168192242"><li id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_li1331611194243"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_b147931238132415">TRANSACTION</strong><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_p1790061684413">DSC will perform adaptation based on GaussDB features during MySQL transaction statement migration.</p>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_p154471135174511"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b19846202419">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_screen553865117451">## Each statement applies only to the next single transaction performed within the session.
|
|
SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
SET TRANSACTION READ ONLY;
|
|
SET TRANSACTION READ WRITE;
|
|
SET TRANSACTION ISOLATION LEVEL READ COMMITTED,READ ONLY;
|
|
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE,READ WRITE;
|
|
## Each statement (with the <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b118411209416">SESSION</strong> keyword) applies to all subsequent transactions performed within the current session.
|
|
START TRANSACTION;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
commit ;</pre>
|
|
<p id="EN-US_TOPIC_0000001234200617__p551319106326"></p>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_p457516432451"><strong id="EN-US_TOPIC_0000001234200617__b144781910183215">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_screen6717453174515">-- Each statement applies only to the next single transaction performed within the session.
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
SET LOCAL TRANSACTION READ ONLY;
|
|
SET LOCAL TRANSACTION READ WRITE;
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL READ COMMITTED READ ONLY;
|
|
SET LOCAL TRANSACTION ISOLATION LEVEL SERIALIZABLE READ WRITE;
|
|
-- Each statement (with the <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b12847201845">SESSION</strong>keyword) applies to all subsequent transactions performed within the current session.
|
|
START TRANSACTION;
|
|
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
COMMIT WORK;</pre>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164746_p8060118"></p>
|
|
</li><li id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_li12303163111243"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_b183624312412">LOCK</strong><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_p26260385017">DSC will perform adaptation based on GaussDB features during the migration of MySQL table locking statements which are used in transaction processing.</p>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_p154471135174511"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b1460420563419">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_screen135114440503">## A.
|
|
START TRANSACTION;
|
|
LOCK TABLES `mt`.`runoob_tbl` WRITE,`mt`.`runoob_tb2` READ;
|
|
commit;
|
|
|
|
## B.
|
|
START TRANSACTION;
|
|
LOCK TABLES `mt`.`runoob_tbl` WRITE;
|
|
commit;
|
|
|
|
## C.
|
|
START TRANSACTION;
|
|
LOCK TABLES `mt`.`runoob_tbl` READ,`mt`.`runoob_tbl` AS t1 READ;
|
|
commit;</pre>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_p12583408506"></p>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_p457516432451"><strong id="EN-US_TOPIC_0000001234200617__b1059219462341">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_screen1728824719508">-- A.
|
|
START TRANSACTION;
|
|
LOCK TABLE "mt"."runoob_tbl" IN ACCESS EXCLUSIVE MODE;
|
|
LOCK TABLE "mt"."runoob_tb2" IN ACCESS SHARE MODE;
|
|
COMMIT WORK;
|
|
|
|
-- B.
|
|
START TRANSACTION;
|
|
LOCK TABLE "mt"."runoob_tbl" IN ACCESS EXCLUSIVE MODE;
|
|
COMMIT WORK;
|
|
|
|
-- C.
|
|
START TRANSACTION;
|
|
LOCK TABLE "mt"."runoob_tbl" IN ACCESS SHARE MODE;
|
|
COMMIT WORK;</pre>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164623_p8060118"></p>
|
|
</li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_section691320563233"><h4 class="sectiontitle">Database Management</h4><ol id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_ol134431923142518"><li id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_li11443023162510"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_b856521632520">SET CHARACTER</strong><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p8060118">DSC will replace MySQL <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b7905161960">SET CHARACTER SET</strong> with <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b139051116619">SET SESSION NAMES</strong> during migration. The following table lists character set mapping.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_table58772197310" frame="border" border="1" rules="all"><caption><b>Table 1 </b></caption><thead align="left"><tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row17878151912319"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.1.3.2.3.1.1"><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p9878121918312">MySQL CHARACTER SET</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.1.3.2.3.1.2"><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p187821912320">GaussDB SESSION NAMES</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1187881916310"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p178781191735">ASCII</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p38781619932">SQL_ASCII</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1587841919315"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1687811192311">BIG5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p687814194311">BIG5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row10878819130"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p168781619232">CP1250</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p168785192314">WIN1250</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row12878131914314"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p138783192033">CP1251</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p2087817191639">WIN1251</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row188783191238"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p987819193316">CP1256</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p6878019938">WIN1256</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row28781194317"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p17878719431">CP1257</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p887818199317">WIN1257</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1787820191134"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p198785191038">CP932</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p68781419937">SJIS</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row2087810195316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p28781191434">EUCJPMS</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p68785191833">EUC_JP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row138781119938"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p138781519138">EUCKR</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1287881920314">EUC_KR</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row68789191735"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p138781219836">GB2312</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p38788194312">GB18030</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row11878171913312"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p208781419039">GBK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p17878181911316">GBK</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row118781519835"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1787910196315">GREEK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p887916191733">ISO_8859_7</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row087971913312"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1187912191139">HEBREW</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p58794191335">ISO_8859_8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1587918191232"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p68791019935">KOI8R</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p587914195319">KOI8R</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1879111919318"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p787991911313">KOI8U</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1587961914313">KOI8U</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row16879219533"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p17879151919317">LATIN1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p8879319732">LATIN1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row2879121913316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p6879919733">LATIN2</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p3879121911320">LATIN2</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1887920190314"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p48797196310">LATIN5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p58791519837">LATIN5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row168793192315"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1687911919315">LATIN7</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1787910193310">LATIN7</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row168791190318"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p28794193313">SJIS</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1287991913318">SJIS</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row16879201915317"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1387920193317">SWE7</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1687915194319">UTF8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row58790191932"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1087941917313">TIS620</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p1787910191735">WIN874</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row19879181914312"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p128792019334">UTF8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p12879161911313">UTF8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_row1987941910316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p6879181917319">UTF8MB4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.1.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p48791719839">UTF8</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p392135817112"><strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b139075110620">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_screen184699615137">SET CHARACTER SET 'ASCII';
|
|
SET CHARACTER SET 'BIG5';
|
|
SET CHARACTER SET 'CP1250';
|
|
SET CHARACTER SET 'CP1251';
|
|
SET CHARACTER SET 'CP1256';
|
|
SET CHARACTER SET 'CP1257';
|
|
SET CHARACTER SET 'CP932';
|
|
SET CHARACTER SET 'EUCJPMS';
|
|
SET CHARACTER SET 'EUCKR';
|
|
SET CHARACTER SET 'GB2312';
|
|
SET CHARACTER SET 'GBK';
|
|
SET CHARACTER SET 'GREEK';
|
|
SET CHARACTER SET 'HEBREW';
|
|
SET CHARACTER SET 'KOI8R';
|
|
SET CHARACTER SET 'KOI8U';
|
|
SET CHARACTER SET 'LATIN1';
|
|
SET CHARACTER SET 'LATIN2';
|
|
SET CHARACTER SET 'LATIN5';
|
|
SET CHARACTER SET 'LATIN7';
|
|
SET CHARACTER SET 'SJIS';
|
|
SET CHARACTER SET 'SWE7';
|
|
SET CHARACTER SET 'TIS620';
|
|
SET CHARACTER SET 'UTF8';
|
|
SET CHARACTER SET 'UTF8MB4';
|
|
## MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b890711769">SET CHARACTER SET 'UCS2';</strong>.
|
|
## MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b890711116610">SET CHARACTER SET 'UTF16';</strong>.
|
|
## MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b59071519614">SET CHARACTER SET 'UTF16LE';</strong>.
|
|
## MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b119071614619">SET CHARACTER SET 'UTF32';</strong>.</pre>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p34691610201216"></p>
|
|
<p id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_p173452351217"><strong id="EN-US_TOPIC_0000001234200617__b1156810823516">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001234200617__en-us_topic_0238518452_en-us_topic_0237362249_en-us_topic_0214164561_screen113635225136">SET SESSION NAMES 'SQL_ASCII';
|
|
SET SESSION NAMES 'BIG5';
|
|
SET SESSION NAMES 'WIN1250';
|
|
SET SESSION NAMES 'WIN1251';
|
|
SET SESSION NAMES 'WIN1256';
|
|
SET SESSION NAMES 'WIN1257';
|
|
SET SESSION NAMES 'SJIS';
|
|
SET SESSION NAMES 'EUC_JP';
|
|
SET SESSION NAMES 'EUC_KR';
|
|
SET SESSION NAMES 'GB18030';
|
|
SET SESSION NAMES 'GBK';
|
|
SET SESSION NAMES 'ISO_8859_7';
|
|
SET SESSION NAMES 'ISO_8859_8';
|
|
SET SESSION NAMES 'KOI8R';
|
|
SET SESSION NAMES 'KOI8U';
|
|
SET SESSION NAMES 'LATIN1';
|
|
SET SESSION NAMES 'LATIN2';
|
|
SET SESSION NAMES 'LATIN5';
|
|
SET SESSION NAMES 'LATIN7';
|
|
SET SESSION NAMES 'SJIS';
|
|
SET SESSION NAMES 'UTF8';
|
|
SET SESSION NAMES 'WIN874';
|
|
SET SESSION NAMES 'UTF8';
|
|
SET SESSION NAMES 'UTF8';
|
|
-- MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b1908611063">SET CHARACTER SET 'UCS2';</strong>.
|
|
-- MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b12908011269">SET CHARACTER SET 'UTF16';</strong>.
|
|
-- MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b79081514612">SET CHARACTER SET 'UTF16LE';</strong>.
|
|
-- MySQL does not support <strong id="EN-US_TOPIC_0000001234200617__en-us_topic_0237712610_b1908151263">SET CHARACTER SET 'UTF32';</strong>.</pre>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
</div>
|
|
</div>
|
|
|