{"id":1075,"date":"2023-03-12T10:56:59","date_gmt":"2023-03-12T02:56:59","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1075"},"modified":"2023-04-29T11:44:14","modified_gmt":"2023-04-29T03:44:14","slug":"mysql-does-not-support-transactions-when-creating-tables","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/mysql-does-not-support-transactions-when-creating-tables\/","title":{"rendered":"MySQL\u521b\u5efa\u8868\u4e0d\u652f\u6301\u4e8b\u52a1"},"content":{"rendered":"<p>\u9700\u6c42\uff1a\u4f7f\u7528JDBC\u4e3a\u6307\u5b9a\u6570\u636e\u5e93\u4e00\u6b21\u6027\u521b\u5efa\u591a\u5f20\u8868<\/p>\n<p><!-- more --><\/p>\n<p>\u535a\u4e3b\u521a\u5f00\u59cb\u7684\u60f3\u6cd5\u662f\u5e0c\u671b\u4e00\u8fde\u4e32\u7684\u5efa\u8868\u52a8\u4f5c\u5c31\u662f\u4e00\u4e2a\u4e8b\u7269\uff0c\u53ea\u8981\u5176\u4e2d\u4efb\u4f55\u4e00\u4e2a\u73af\u8282\u51fa\u73b0\u5f02\u5e38\uff0c\u5c31\u80fd\u5f15\u8d77\u4e8b\u52a1\u56de\u6eda\uff0c\u7ed3\u679c\u5c31\u662f\u521b\u5efa\u6570\u636e\u5e93\u8868\u5931\u8d25\u3002\u4f46\u662f\u7ecf\u8fc7\u53cd\u590d\u6d4b\u8bd5\uff0c\u53d1\u73b0\u521b\u5efa\u5176\u4e2d\u4e00\u4e2a\u6570\u636e\u5e93\u8868\u5931\u8d25\u5e76\u4e0d\u5f71\u54cd\u521b\u5efa\u5176\u4ed6\u6570\u636e\u5e93\u8868\u6210\u529f\uff0c\u4e8b\u52a1\u5e76\u6ca1\u6709\u53d1\u751f\u56de\u6eda\uff0c\u56e0\u6b64\u6000\u7591\u521b\u5efa\u8868\u5b9e\u9645\u4e0a\u662f\u4e0d\u652f\u6301\u4e8b\u52a1\u7684\u3002<\/p>\n<p>\u90a3\u4e48\u4e0a\u9762\u7684\u9700\u6c42\u600e\u4e48\u89e3\u51b3\u5462\uff1f<br \/>\n\u89e3\u51b3\u529e\u6cd5\uff1a\u4f7f\u7528try{}catch{}\u7684\u65b9\u5f0f\u5c06\u4e0a\u9762\u7684\u52a8\u4f5c\u201c\u5305\u201d\u8d77\u6765\uff0c\u4e00\u65e6\u51fa\u73b0\u4e86\u5f02\u5e38\uff0c\u5c31catch\u6355\u83b7\uff0c\u7136\u540e\u5728catch\u4e2d\u5220\u9664\u8868\uff0c\u5220\u9664\u6570\u636e\u7b49\u64cd\u4f5c\uff0c\u201c\u6a21\u62df\u56de\u6eda\u201d\u7684\u6548\u679c\u3002<\/p>\n<p>\u53e6\u5916\u6ce8\u610f\uff0cMyISAM\u7c7b\u578b\u4e0d\u652f\u6301\u4e8b\u52a1\u5904\u7406\u7b49\u9ad8\u7ea7\u5904\u7406\uff0c\u800cInnoDB\u7c7b\u578b\u652f\u6301\u3002MyISAM\u7c7b\u578b\u7684\u8868\u5f3a\u8c03\u7684\u662f\u6027\u80fd\uff0c\u5176\u6267\u884c\u6570\u5ea6\u6bd4InnoDB\u7c7b\u578b\u66f4\u5feb\uff0c\u4f46\u662f\u4e0d\u63d0\u4f9b\u4e8b\u52a1\u652f\u6301\uff0c\u800cInnoDB\u63d0\u4f9b\u4e8b\u52a1\u652f\u6301\u4ee5\u53ca\u5916\u90e8\u952e\u7b49\u9ad8\u7ea7\u6570\u636e\u5e93\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u6c42\uff1a\u4f7f\u7528JDBC\u4e3a\u6307\u5b9a\u6570\u636e\u5e93\u4e00\u6b21\u6027\u521b\u5efa\u591a\u5f20\u8868 \u535a\u4e3b\u521a\u5f00\u59cb\u7684\u60f3\u6cd5\u662f\u5e0c\u671b\u4e00\u8fde\u4e32\u7684\u5efa\u8868\u52a8\u4f5c\u5c31\u662f\u4e00\u4e2a\u4e8b\u7269\uff0c\u53ea\u8981\u5176\u4e2d\u4efb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[87],"class_list":["post-1075","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-87"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1075"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1075\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}