{"id":412,"date":"2021-05-06T18:06:16","date_gmt":"2021-05-06T10:06:16","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=412"},"modified":"2021-05-06T18:06:16","modified_gmt":"2021-05-06T10:06:16","slug":"drop%e3%80%81delete%e4%b8%8etruncate%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/05\/06\/drop%e3%80%81delete%e4%b8%8etruncate%e7%9a%84%e5%8c%ba%e5%88%ab\/","title":{"rendered":"drop\u3001delete\u4e0etruncate\u7684\u533a\u522b"},"content":{"rendered":"\n<p> SQL\u4e2d\u7684drop\u3001delete\u3001truncate\u90fd\u8868\u793a\u5220\u9664\uff0c\u4f46\u662f\u4e09\u8005\u6709\u4e00\u4e9b\u5dee\u522b<br>delete\u548ctruncate\u53ea\u5220\u9664\u8868\u7684\u6570\u636e\u4e0d\u5220\u9664\u8868\u7684\u7ed3\u6784<br>\u901f\u5ea6,\u4e00\u822c\u6765\u8bf4: drop> truncate >delete<br>delete\u8bed\u53e5\u662fdml\uff08\u6570\u636e\u5e93\u64cd\u7eb5\u8bed\u8a00\uff09,\u8fd9\u4e2a\u64cd\u4f5c\u4f1a\u653e\u5230rollback segement\u4e2d,\u4e8b\u52a1\u63d0\u4ea4\u4e4b\u540e\u624d\u751f\u6548;<br>\u5982\u679c\u6709\u76f8\u5e94\u7684trigger\uff08\u89e6\u53d1\u5668\uff09,\u6267\u884c\u7684\u65f6\u5019\u5c06\u88ab\u89e6\u53d1. truncate,drop\u662fddl, \u64cd\u4f5c\u7acb\u5373\u751f\u6548,\u539f\u6570\u636e\u4e0d\u653e\u5230rollback<br>segment\u4e2d,\u4e0d\u80fd\u56de\u6eda. \u64cd\u4f5c\u4e0d\u89e6\u53d1trigger.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u4e2d\u7684drop\u3001delete&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","category-3"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}