forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
<a name="EN-US_TOPIC_0000001772536576"></a><a name="EN-US_TOPIC_0000001772536576"></a>
|
|
|
|
<h1 class="topictitle1">LOCK</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_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_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_p154471135174511"><strong id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_b254510134614">Input</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_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_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_p12583408506"></p>
|
|
<p id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_p457516432451"><strong id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_b1447119412469">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_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_0000001772536576__en-us_topic_0000001706104629_en-us_topic_0000001387427536_en-us_topic_0214164623_p8060118"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0205.html">Transaction Management</a></div>
|
|
</div>
|
|
</div>
|
|
|