{"id":577,"date":"2020-03-31T00:41:30","date_gmt":"2020-03-30T16:41:30","guid":{"rendered":"https:\/\/www.myway5.com\/?p=577"},"modified":"2023-07-05T21:29:52","modified_gmt":"2023-07-05T13:29:52","slug":"mysql-transaction-isolation","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/","title":{"rendered":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<p>MySQL \u7684\u4e8b\u52a1\u63d0\u4f9b\u4e86 ACID \u56db\u4e2a\u7279\u6027\uff0c\u5176\u4e2d\u9694\u79bb\u6027\u662f\u8f83\u590d\u6742\u7684\u4e00\u4e2a\u7279\u6027\u3002SQL \u6807\u51c6\u5b9a\u4e49\u4e86\u56db\u79cd\u9694\u79bb\u7ea7\u522b\uff0c\u6bcf\u4e00\u79cd\u9694\u79bb\u7ea7\u522b\u90fd\u89c4\u5b9a\u4e86\u4e8b\u52a1\u4e2d\u4fee\u6539\u5bf9\u4e8e\u5176\u4ed6\u4e8b\u52a1\u7684\u53ef\u89c1\u6027\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u8f83\u4f4e\u7684\u9694\u79bb\u901a\u5e38\u53ef\u4ee5\u5e26\u6765\u66f4\u9ad8\u7684\u5e76\u53d1\u3002\u56db\u79cd\u9694\u79bb\u7ea7\u522b\u5206\u522b\u662f\uff1a \u672a\u63d0\u4ea4\u8bfb\uff08READ UNCOMMITTED)\uff0c\u5df2\u63d0\u4ea4\u8bfb\uff08READ COMMITTED)\/\u4e0d\u53ef\u91cd\u590d\u8bfb(NONREPEATABLE READ)\uff0c\u53ef\u91cd\u590d\u8bfb(REPEATABLE READ)\uff0c\u53ef\u4e32\u884c\u5316(SERIALIZABLE)\u3002\u4e0b\u9762\u7684\u8bf4\u660e\u4ec5\u5bf9 InnoDB \u5f15\u64ce\u4fdd\u8bc1\u51c6\u786e\u3002<\/p>\n<h2>\u56db\u79cd\u9694\u79bb\u7ea7\u522b<\/h2>\n<p>\u5173\u4e8e\u56db\u79cd\u9694\u79bb\u7ea7\u522b\uff0c\u5728\u300a\u9ad8\u6027\u80fd MySQL> \u4e2d\u5df2\u7ecf\u6709\u4e86\u5f88\u597d\u7684\u9610\u8ff0\uff0c\u8fd9\u91cc\u7b80\u5355\u5730\u9648\u8ff0\u51fa\u6765\u3002<\/p>\n<h3>\u672a\u63d0\u4ea4\u8bfb<\/h3>\n<p>\u5728\u672a\u63d0\u4ea4\u8bfb\u7ea7\u522b\uff0c\u4e8b\u52a1\u4e2d\u7684\u4fee\u6539\uff0c\u5373\u4f7f\u6ca1\u6709\u63d0\u4ea4\uff0c\u5bf9\u4e8e\u5176\u4ed6\u4e8b\u52a1\u4e5f\u90fd\u662f\u53ef\u89c1\u7684\u3002\u4e8b\u52a1\u53ef\u4ee5\u8bfb\u53d6\u672a\u63d0\u4ea4\u7684\u6570\u636e\uff0c\u8fd9\u4e5f\u79f0\u4e3a\u810f\u8bfb\uff08Dirty Read\uff09\u3002\u5f88\u660e\u663e\uff0c\u672a\u63d0\u4ea4\u8bfb\u7b49\u540c\u4e8e\u672a\u505a\u4efb\u4f55\u7684\u4e8b\u52a1\u9694\u79bb\uff0c\u56e0\u6b64\u662f\u6700\u4f4e\u7684\u9694\u79bb\u7ea7\u522b\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4e5f\u6ca1\u6709\u4ec0\u4e48\u53ef\u7528\u7684\u573a\u666f\u3002<\/p>\n<h3>\u5df2\u63d0\u4ea4\u8bfb<\/h3>\n<p>\u5df2\u63d0\u4ea4\u8bfb\u662f\u76f8\u5bf9\u4e8e\u672a\u63d0\u4ea4\u8bfb\u6765\u8bf4\u7684\uff0c\u4e3b\u8981\u662f\u5b9e\u73b0\u4e86\u5728\u4e8b\u52a1\u4e2d\u672a\u63d0\u4ea4\u7684\u4fee\u6539\uff0c\u5bf9\u4e8e\u5176\u4ed6\u4e8b\u52a1\u662f\u4e0d\u53ef\u89c1\u7684\u3002\u4f46\u662f\u8fd9\u79cd\u9694\u79bb\u7ea7\u522b\u4f1a\u9020\u6210\u4e00\u4e2a\u95ee\u9898\uff0c\u5728\u4e00\u6b21\u4e8b\u52a1\u4e2d\u591a\u6b21\u8bfb\u53d6\u4f1a\u51fa\u73b0\u4e0d\u4e00\u6837\u7684\u7ed3\u679c\uff0c\u6240\u4ee5\u4e5f\u79f0\u4e3a\u4e0d\u53ef\u91cd\u590d\u8bfb\u3002\u60f3\u8981\u66f4\u8f7b\u677e\u7684\u7406\u89e3\u4e0d\u53ef\u91cd\u590d\u8bfb\uff0c\u53ef\u4ee5\u770b\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-00-44-42.png\" alt=\"iso1\" \/><\/p>\n<p>\u4e8b\u52a1A\u671f\u95f4\uff0c\u4e8b\u52a1B\u63d0\u4ea4\u4e86\u4e00\u6b21\u66f4\u65b0\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u4e8b\u52a1A\u4e2d\u4e24\u6b21\u67e5\u8be2 id \u4e3a 1 \u7684\u6570\u636e\uff0c\u7b2c\u4e00\u6b21 score \u662f 89\uff0c\u7b2c\u4e8c\u6b21 score \u662f 29\u3002\u6211\u4eec\u4e5f\u53ef\u4ee5\u7528 sql \u8bed\u53e5\u6765\u9a8c\u8bc1\u4e00\u4e0b\uff1a<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; show create table score;\n\n+-------+--------------------------------------------------------------------+\n| Table | Create Table                                                       |\n+-------+--------------------------------------------------------------------+\n| score | CREATE TABLE `score` (                                             |\n|       |   `id` int(11) NOT NULL AUTO_INCREMENT,                            |\n|       |   `name` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,          |\n|       |   `score` int(11) NOT NULL,                                        |\n|       |   PRIMARY KEY (`id`)                                               |\n|       | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci |\n+-------+--------------------------------------------------------------------+\n<\/code><\/pre>\n<p>\u7ec8\u7aef A :<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; set autocommit=0;\nmysql&gt; set session transaction isolation level read committed;\nmysql&gt; begin;\nmysql&gt; select * from score where id = 1;\n\n+----+------+-------+\n| id | name | score |\n+----+------+-------+\n| 1  | Bob  | 89    |\n+----+------+-------+\n<\/code><\/pre>\n<p>\u7ec8\u7aef B :<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; set autocommit=0;\nmysql&gt; set session transaction isolation level read committed;\nmysql&gt; begin;\nmysql&gt; update score set score=29 where id = 1;\nmysql&gt; commit;\n<\/code><\/pre>\n<p>\u7ec8\u7aef A :<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; select * from score where id = 1;\n\n+----+------+-------+\n| id | name | score |\n+----+------+-------+\n| 1  | Bob  | 29    |\n+----+------+-------+\n\nmysql&gt; commit;\n<\/code><\/pre>\n<h3>\u53ef\u91cd\u590d\u8bfb<\/h3>\n<p>\u53ef\u91cd\u590d\u8bfb\u662f MySQL \u7684\u9ed8\u8ba4\u9694\u79bb\u754c\u522b\uff0c\u4fdd\u8bc1\u4e86\u5728\u540c\u4e00\u4e2a\u4e8b\u52a1\u4e2d\u591a\u6b21\u8bfb\u53d6\u540c\u6837\u7684\u8bb0\u5f55\u7ed3\u679c\u662f\u4e00\u81f4\u7684\u3002\u4f46\u662f\u5728\u7406\u8bba\u4e0a\uff0c\u53ef\u91cd\u590d\u8bfb\u9694\u79bb\u7ea7\u522b\u8fd8\u662f\u65e0\u6cd5\u89e3\u51b3\u53e6\u5916\u4e00\u4e2a\u5e7b\u8bfb\uff08Phantom Read\uff09\u7684\u95ee\u9898\u3002\u6240\u8c13\u5e7b\u8bfb\uff0c\u6307\u7684\u662f\u5f53\u67d0\u4e2a\u4e8b\u52a1\u5728\u8bfb\u53d6\u67d0\u4e2a\u8303\u56f4\u5185\u7684\u8bb0\u5f55\u65f6\uff0c\u4f1a\u4ea7\u751f\u6362\u884c\uff08Phantom Row\uff09\u3002InnoDB \u901a\u8fc7\u591a\u7248\u672c\u63a7\u5236\uff08MVCC\uff0cMultiversion Concurreny Control\uff09\u89e3\u51b3\u4e86\u5e7b\u8bfb\u7684\u95ee\u9898\u3002\u4f46\u662f\u5bf9\u4e8e\u53ef\u91cd\u590d\u8bfb\uff0c\u6709\u4e00\u4e2a\u8ba9\u6211\u6bd4\u8f83\u4e0d\u786e\u5b9a\u7684\u573a\u666f:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-00-46-17.png\" alt=\"iso2\" \/><\/p>\n<p>\u6309\u9053\u7406\u8bf4\uff0c\u5728\u4e8b\u52a1 A \u5185 score \u5e94\u8be5\u662f\u4e00\u81f4\u7684\uff0c\u4e8b\u52a1 B \u63d0\u4ea4\u7684 score \u662f\u4e0d\u53ef\u89c1\u7684\uff0c\u4e5f\u5c31\u662f 89\uff0c\u6240\u4ee5 id \u4e3a 1 \u7684\u6570\u636e\u5e94\u8be5\u662f:<\/p>\n<pre><code class=\"language-shell line-numbers\">+----+------+-------+\n| id | name | score |\n+----+------+-------+\n| 1  | Alice| 29    |\n+----+------+-------+\n\n<\/code><\/pre>\n<p>\u4e8b\u5b9e\u771f\u7684\u5982\u6b64\u5417\uff1f\u6211\u4eec\u7528 MySQL \u9a8c\u8bc1\u4e00\u4e0b\uff1a<\/p>\n<p>\u7ec8\u7aef A:<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; set session transaction isolation level repeatable read;\nmysql&gt; begin;\nmysql&gt; select * from score where id = 1;\n<\/code><\/pre>\n<p>\u7ec8\u7aef B:<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; set session transaction isolation level repeatable read;\nmysql&gt; begin;\nmysql&gt; update score set score=29 where id = 1;\nmysql&gt; commit\n<\/code><\/pre>\n<p>\u7ec8\u7aef A:<\/p>\n<pre><code class=\"language-shell line-numbers\">mysql&gt; update score set name='Alice' where score=89 and id = 1;\nmysql&gt; commit;\nmysql&gt; select * from score where id = 1; \n\n+----+------+-------+\n| id | name | score |\n+----+------+-------+\n| 1  | Bob  | 29    |\n+----+------+-------+\n<\/code><\/pre>\n<p>\u53d1\u73b0\u6211\u7684\u60f3\u6cd5\u662f\u9519\u7684\u3002\u6240\u4ee5\u5982\u4f55\u6b63\u786e\u7406\u89e3\u8fd9\u91cc\u6240\u8bf4\u7684\u53ef\u91cd\u590d\u8bfb\u5462\uff1f\u5e94\u8be5\u662f\u4ec5\u6307\u5728 SELECT \u7684\u65f6\u5019\uff0c\u56e0\u4e3a MySQL \u4e8b\u52a1\u7684\u53ef\u91cd\u590d\u8bfb\u9694\u79bb\u7ea7\u522b\u4e0b\uff0c\u4f1a\u4f7f\u7528 MVCC\uff0c\u6b64\u65f6 SELECT \u53ea\u67e5\u627e\u7248\u672c\u65e9\u4e8e\u5f53\u524d\u4e8b\u52a1\u7248\u672c\u7684\u6570\u636e\u884c\uff0c\u6240\u4ee5\u4fdd\u8bc1\u4e86\u4e00\u6b21\u4e8b\u52a1\u5185\u7684\u53ef\u91cd\u590d\u8bfb\u3002\u800c INSERT\u3001DELETE\u3001UPDATE \u5747\u4f1a\u4f7f\u7528\u5f53\u524d\u7cfb\u7edf\u7248\u672c\u53f7\u7684\u6700\u65b0\u6570\u636e\u3002<\/p>\n<h3>\u53ef\u4e32\u884c\u5316<\/h3>\n<p>\u53ef\u4e32\u884c\u5316\u662f\u6700\u9ad8\u7684\u9694\u79bb\u7ea7\u522b\u3002\u5b83\u901a\u8fc7\u5f3a\u5236\u4e8b\u52a1\u4e32\u884c\u6267\u884c\uff0c\u907f\u514d\u4e86\u524d\u9762\u8bf4\u7684\u5e7b\u8bfb\u95ee\u9898\u3002\u7b80\u5355\u6765\u8bf4\uff0cSERIALIZABLE \u4f1a\u5728\u8bfb\u53d6\u7684\u6bcf\u4e00\u884c\u6570\u636e\u90fd\u52a0\u9501\uff0c\u6240\u4ee5\u53ef\u80fd\u5bfc\u81f4\u5927\u91cf\u7684\u8d85\u65f6\u548c\u9501\u4e89\u7528\u95ee\u9898\u3002\u5b9e\u9645\u5e94\u7528\u4e2d\u4e5f\u5f88\u5c11\u7528\u5230\u8fd9\u4e2a\u9694\u79bb\u7ea7\u522b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 MySQL \u7684\u4e8b\u52a1\u63d0\u4f9b\u4e86 ACID \u56db\u4e2a\u7279\u6027\uff0c\u5176\u4e2d\u9694\u79bb\u6027\u662f\u8f83\u590d\u6742\u7684\u4e00\u4e2a\u7279\u6027\u3002SQL \u6807\u51c6\u5b9a\u4e49\u4e86\u56db\u79cd\u9694\u79bb\u7ea7 &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":578,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110],"tags":[112,113,111],"class_list":["post-577","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","tag-acid","tag-isolation","tag-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8ff0 MySQL \u7684\u4e8b\u52a1\u63d0\u4f9b\u4e86 ACID \u56db\u4e2a\u7279\u6027\uff0c\u5176\u4e2d\u9694\u79bb\u6027\u662f\u8f83\u590d\u6742\u7684\u4e00\u4e2a\u7279\u6027\u3002SQL \u6807\u51c6\u5b9a\u4e49\u4e86\u56db\u79cd\u9694\u79bb\u7ea7 &hellip; \u7ee7\u7eed\u9605\u8bfbMySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-30T16:41:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-05T13:29:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76\",\"datePublished\":\"2020-03-30T16:41:30+00:00\",\"dateModified\":\"2023-07-05T13:29:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\"},\"wordCount\":54,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg\",\"keywords\":[\"acid\",\"isolation\",\"mysql\"],\"articleSection\":[\"\u6570\u636e\u5e93\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\",\"name\":\"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg\",\"datePublished\":\"2020-03-30T16:41:30+00:00\",\"dateModified\":\"2023-07-05T13:29:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage\",\"url\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg\",\"contentUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg\",\"width\":750,\"height\":750},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/","og_locale":"zh_CN","og_type":"article","og_title":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"\u6982\u8ff0 MySQL \u7684\u4e8b\u52a1\u63d0\u4f9b\u4e86 ACID \u56db\u4e2a\u7279\u6027\uff0c\u5176\u4e2d\u9694\u79bb\u6027\u662f\u8f83\u590d\u6742\u7684\u4e00\u4e2a\u7279\u6027\u3002SQL \u6807\u51c6\u5b9a\u4e49\u4e86\u56db\u79cd\u9694\u79bb\u7ea7 &hellip; \u7ee7\u7eed\u9605\u8bfbMySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76","og_url":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2020-03-30T16:41:30+00:00","article_modified_time":"2023-07-05T13:29:52+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg","type":"image\/jpeg"}],"author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76","datePublished":"2020-03-30T16:41:30+00:00","dateModified":"2023-07-05T13:29:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/"},"wordCount":54,"commentCount":0,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg","keywords":["acid","isolation","mysql"],"articleSection":["\u6570\u636e\u5e93"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/","url":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/","name":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg","datePublished":"2020-03-30T16:41:30+00:00","dateModified":"2023-07-05T13:29:52+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#primaryimage","url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg","contentUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/03\/0fecee0967c18fb6.jpg","width":750,"height":750},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2020\/03\/31\/mysql-transaction-isolation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"MySQL \u4e8b\u52a1\u9694\u79bb\u6027\u63a2\u7a76"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":4963,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=577"}],"version-history":[{"count":1,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":1550,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/577\/revisions\/1550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media\/578"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}