{"id":96377,"date":"2026-08-27T16:32:16","date_gmt":"2026-08-27T08:32:16","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/96377.html"},"modified":"2026-08-27T16:32:16","modified_gmt":"2026-08-27T08:32:16","slug":"mysql-ddl%e6%93%8d%e4%bd%9c%e5%85%a8%e8%a7%a3%e6%9e%90%ef%bc%9a%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a%ef%bc%8c%e5%8c%85%e5%90%ab%e7%b4%a2%e5%bc%95%e8%a7%86%e5%9b%be%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/96377.html","title":{"rendered":"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81DDL%20%E5%9F%BA%E7%A1%80%E6%A6%82%E8%BF%B0-toc\" style=\"margin-left:0px\">\u4e00\u3001DDL \u57fa\u7840\u6982\u8ff0<\/p>\n<p id=\"1.1%20DDL%20%E5%AE%9A%E4%B9%89%E4%B8%8E%E4%BD%9C%E7%94%A8-toc\" style=\"margin-left:80px\">1.1 DDL \u5b9a\u4e49\u4e0e\u4f5c\u7528<\/p>\n<p id=\"1.2%20DDL%20%E8%AF%AD%E5%8F%A5%E5%88%86%E7%B1%BB-toc\" style=\"margin-left:80px\">1.2 DDL \u8bed\u53e5\u5206\u7c7b<\/p>\n<p id=\"1.3%20%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E4%B8%8E%E5%AD%98%E5%82%A8%E5%BC%95%E6%93%8E-toc\" style=\"margin-left:80px\">1.3 \u6570\u636e\u7c7b\u578b\u4e0e\u5b58\u50a8\u5f15\u64ce<\/p>\n<p id=\"1.3.1%20%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B-toc\" style=\"margin-left:120px\">1.3.1 \u6570\u636e\u7c7b\u578b<\/p>\n<p id=\"1.3.2%20%E5%AD%98%E5%82%A8%E5%BC%95%E6%93%8E%E5%B7%AE%E5%BC%82-toc\" style=\"margin-left:120px\">1.3.2 \u5b58\u50a8\u5f15\u64ce\u5dee\u5f02<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E5%9F%BA%E7%A1%80%20DDL%20%E8%AF%AD%E5%8F%A5%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:40px\">\u4e8c\u3001\u57fa\u7840 DDL \u8bed\u53e5\u8be6\u89e3<\/p>\n<p id=\"2.1%20%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%8E%E8%A1%A8-toc\" style=\"margin-left:80px\">2.1 \u521b\u5efa\u6570\u636e\u5e93\u4e0e\u8868<\/p>\n<p id=\"2.1.1%20%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93-toc\" style=\"margin-left:120px\">2.1.1 \u521b\u5efa\u6570\u636e\u5e93<\/p>\n<p id=\"2.1.2%20%E5%88%9B%E5%BB%BA%E8%A1%A8-toc\" style=\"margin-left:120px\">2.1.2 \u521b\u5efa\u8868<\/p>\n<p id=\"2.2%20%E4%BF%AE%E6%94%B9%E8%A1%A8%E7%BB%93%E6%9E%84-toc\" style=\"margin-left:80px\">2.2 \u4fee\u6539\u8868\u7ed3\u6784<\/p>\n<p id=\"2.2.1%20%E6%B7%BB%E5%8A%A0%E5%88%97-toc\" style=\"margin-left:120px\">2.2.1 \u6dfb\u52a0\u5217<\/p>\n<p id=\"2.2.2%20%E4%BF%AE%E6%94%B9%E5%88%97%E5%B1%9E%E6%80%A7-toc\" style=\"margin-left:120px\">2.2.2 \u4fee\u6539\u5217\u5c5e\u6027<\/p>\n<p id=\"2.2.3%20%E5%88%A0%E9%99%A4%E5%88%97-toc\" style=\"margin-left:120px\">2.2.3 \u5220\u9664\u5217<\/p>\n<p id=\"2.2.4%20%E9%87%8D%E5%91%BD%E5%90%8D%E8%A1%A8-toc\" style=\"margin-left:120px\">2.2.4 \u91cd\u547d\u540d\u8868<\/p>\n<p id=\"2.3%20%E5%88%A0%E9%99%A4%E4%B8%8E%E6%B8%85%E7%A9%BA%E6%95%B0%E6%8D%AE-toc\" style=\"margin-left:80px\">2.3 \u5220\u9664\u4e0e\u6e05\u7a7a\u6570\u636e<\/p>\n<p id=\"2.3.1%20%E5%88%A0%E9%99%A4%E8%A1%A8-toc\" style=\"margin-left:120px\">2.3.1 \u5220\u9664\u8868<\/p>\n<p id=\"2.3.2%20%E6%B8%85%E7%A9%BA%E8%A1%A8%E6%95%B0%E6%8D%AE-toc\" style=\"margin-left:120px\">2.3.2 \u6e05\u7a7a\u8868\u6570\u636e<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E7%BA%A6%E6%9D%9F%E4%B8%8E%E7%B4%A2%E5%BC%95%E7%AE%A1%E7%90%86-toc\" style=\"margin-left:40px\">\u4e09\u3001\u7ea6\u675f\u4e0e\u7d22\u5f15\u7ba1\u7406<\/p>\n<p id=\"3.1%20%E7%BA%A6%E6%9D%9F%E6%9D%A1%E4%BB%B6-toc\" style=\"margin-left:80px\">3.1 \u7ea6\u675f\u6761\u4ef6<\/p>\n<p id=\"3.1.1%20%E4%B8%BB%E9%94%AE%E7%BA%A6%E6%9D%9F-toc\" style=\"margin-left:120px\">3.1.1 \u4e3b\u952e\u7ea6\u675f<\/p>\n<p id=\"3.1.2%20%E5%A4%96%E9%94%AE%E7%BA%A6%E6%9D%9F-toc\" style=\"margin-left:120px\">3.1.2 \u5916\u952e\u7ea6\u675f<\/p>\n<p id=\"3.1.3%20%E5%94%AF%E4%B8%80%E7%BA%A6%E6%9D%9F-toc\" style=\"margin-left:120px\">3.1.3 \u552f\u4e00\u7ea6\u675f<\/p>\n<p id=\"3.1.4%20%E6%A3%80%E6%9F%A5%E7%BA%A6%E6%9D%9F%EF%BC%88MySQL%208.0%2B%EF%BC%89-toc\" style=\"margin-left:120px\">3.1.4 \u68c0\u67e5\u7ea6\u675f&#xff08;MySQL 8.0&#043;&#xff09;<\/p>\n<p id=\"3.2%20%E7%B4%A2%E5%BC%95%E7%AE%A1%E7%90%86-toc\" style=\"margin-left:80px\">3.2 \u7d22\u5f15\u7ba1\u7406<\/p>\n<p id=\"3.2.1%20%E5%88%9B%E5%BB%BA%E7%B4%A2%E5%BC%95-toc\" style=\"margin-left:120px\">3.2.1 \u521b\u5efa\u7d22\u5f15<\/p>\n<p id=\"3.2.2%20%E5%88%A0%E9%99%A4%E7%B4%A2%E5%BC%95-toc\" style=\"margin-left:120px\">3.2.2 \u5220\u9664\u7d22\u5f15<\/p>\n<p id=\"3.2.3%20%E4%B8%8D%E5%8F%AF%E8%A7%81%E7%B4%A2%E5%BC%95%EF%BC%88MySQL%208.0%2B%EF%BC%89-toc\" style=\"margin-left:120px\">3.2.3 \u4e0d\u53ef\u89c1\u7d22\u5f15&#xff08;MySQL 8.0&#043;&#xff09;<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E8%A7%86%E5%9B%BE%E4%B8%8E%E5%88%86%E5%8C%BA%E8%A1%A8-toc\" style=\"margin-left:40px\">\u56db\u3001\u89c6\u56fe\u4e0e\u5206\u533a\u8868<\/p>\n<p id=\"4.1%20%E8%A7%86%E5%9B%BE%E6%93%8D%E4%BD%9C-toc\" style=\"margin-left:80px\">4.1 \u89c6\u56fe\u64cd\u4f5c<\/p>\n<p id=\"4.1.1%20%E5%88%9B%E5%BB%BA%E8%A7%86%E5%9B%BE-toc\" style=\"margin-left:120px\">4.1.1 \u521b\u5efa\u89c6\u56fe<\/p>\n<p id=\"4.1.2%20%E4%BF%AE%E6%94%B9%E8%A7%86%E5%9B%BE-toc\" style=\"margin-left:120px\">4.1.2 \u4fee\u6539\u89c6\u56fe<\/p>\n<p id=\"4.1.3%20%E5%88%A0%E9%99%A4%E8%A7%86%E5%9B%BE-toc\" style=\"margin-left:120px\">4.1.3 \u5220\u9664\u89c6\u56fe<\/p>\n<p id=\"4.2%20%E5%88%86%E5%8C%BA%E8%A1%A8-toc\" style=\"margin-left:80px\">4.2 \u5206\u533a\u8868<\/p>\n<p id=\"4.2.1%20%E5%88%9B%E5%BB%BA%E5%88%86%E5%8C%BA%E8%A1%A8-toc\" style=\"margin-left:120px\">4.2.1 \u521b\u5efa\u5206\u533a\u8868<\/p>\n<p id=\"4.2.2%20%E4%BF%AE%E6%94%B9%E5%88%86%E5%8C%BA-toc\" style=\"margin-left:120px\">4.2.2 \u4fee\u6539\u5206\u533a<\/p>\n<p id=\"4.2.3%20%E5%88%A0%E9%99%A4%E5%88%86%E5%8C%BA-toc\" style=\"margin-left:120px\">4.2.3 \u5220\u9664\u5206\u533a<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E4%BA%8B%E5%8A%A1%E4%B8%8E%20DDL%20%E5%8E%9F%E5%AD%90%E6%80%A7-toc\" style=\"margin-left:40px\">\u4e94\u3001\u4e8b\u52a1\u4e0e DDL \u539f\u5b50\u6027<\/p>\n<p id=\"5.1%20DDL%20%E4%B8%8E%E4%BA%8B%E5%8A%A1%E7%9A%84%E5%85%B3%E7%B3%BB-toc\" style=\"margin-left:80px\">5.1 DDL \u4e0e\u4e8b\u52a1\u7684\u5173\u7cfb<\/p>\n<p id=\"5.2%20%E5%8E%9F%E5%AD%90%20DDL%20%E7%89%B9%E6%80%A7-toc\" style=\"margin-left:80px\">5.2 \u539f\u5b50 DDL \u7279\u6027<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E9%AB%98%E7%BA%A7%20DDL%20%E7%89%B9%E6%80%A7%E4%B8%8E%E4%BC%98%E5%8C%96-toc\" style=\"margin-left:40px\">\u516d\u3001\u9ad8\u7ea7 DDL \u7279\u6027\u4e0e\u4f18\u5316<\/p>\n<p id=\"6.1%20%E5%9C%A8%E7%BA%BF%20DDL%EF%BC%88Online%20DDL%EF%BC%89-toc\" style=\"margin-left:80px\">6.1 \u5728\u7ebf DDL&#xff08;Online DDL&#xff09;<\/p>\n<p id=\"6.1.1%20%E6%A0%B8%E5%BF%83%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:120px\">6.1.1 \u6838\u5fc3\u539f\u7406<\/p>\n<p id=\"6.1.2%20%E8%AF%AD%E6%B3%95%E4%B8%8E%E9%80%89%E9%A1%B9-toc\" style=\"margin-left:120px\">6.1.2 \u8bed\u6cd5\u4e0e\u9009\u9879<\/p>\n<p id=\"6.2%20%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96%E7%AD%96%E7%95%A5-toc\" style=\"margin-left:80px\">6.2 \u6027\u80fd\u4f18\u5316\u7b56\u7565<\/p>\n<p id=\"6.2.1%20%E6%8B%86%E5%88%86%E5%A4%A7%E6%93%8D%E4%BD%9C-toc\" style=\"margin-left:120px\">6.2.1 \u62c6\u5206\u5927\u64cd\u4f5c<\/p>\n<p id=\"6.2.2%20%E5%BB%B6%E8%BF%9F%E7%B4%A2%E5%BC%95%E5%88%9B%E5%BB%BA-toc\" style=\"margin-left:120px\">6.2.2 \u5ef6\u8fdf\u7d22\u5f15\u521b\u5efa<\/p>\n<p id=\"6.2.3%20%E7%9B%91%E6%8E%A7%E4%B8%8E%E8%B0%83%E4%BC%98-toc\" style=\"margin-left:120px\">6.2.3 \u76d1\u63a7\u4e0e\u8c03\u4f18<\/p>\n<p id=\"%E4%B8%83%E3%80%81%E6%9D%83%E9%99%90%E7%AE%A1%E7%90%86%E4%B8%8E%E5%AE%89%E5%85%A8%E5%AE%9E%E8%B7%B5-toc\" style=\"margin-left:40px\">\u4e03\u3001\u6743\u9650\u7ba1\u7406\u4e0e\u5b89\u5168\u5b9e\u8df5<\/p>\n<p id=\"7.1%20DDL%20%E6%9D%83%E9%99%90%E5%88%86%E9%85%8D-toc\" style=\"margin-left:80px\">7.1 DDL \u6743\u9650\u5206\u914d<\/p>\n<p id=\"7.1.1%20%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E5%B9%B6%E6%8E%88%E6%9D%83-toc\" style=\"margin-left:120px\">7.1.1 \u521b\u5efa\u7528\u6237\u5e76\u6388\u6743<\/p>\n<p id=\"7.1.2%20%E5%9B%9E%E6%94%B6%E6%9D%83%E9%99%90-toc\" style=\"margin-left:120px\">7.1.2 \u56de\u6536\u6743\u9650<\/p>\n<p id=\"7.2%20%E5%AE%89%E5%85%A8%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5-toc\" style=\"margin-left:80px\">7.2 \u5b89\u5168\u6700\u4f73\u5b9e\u8df5<\/p>\n<p id=\"%E5%85%AB%E3%80%81%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88-toc\" style=\"margin-left:40px\">\u516b\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/p>\n<p id=\"8.1%20DDL%20%E6%89%A7%E8%A1%8C%E7%BC%93%E6%85%A2-toc\" style=\"margin-left:80px\">8.1 DDL \u6267\u884c\u7f13\u6162<\/p>\n<p id=\"8.2%20%E5%94%AF%E4%B8%80%E7%B4%A2%E5%BC%95%E5%86%B2%E7%AA%81-toc\" style=\"margin-left:80px\">8.2 \u552f\u4e00\u7d22\u5f15\u51b2\u7a81<\/p>\n<p id=\"8.3%20%E4%B8%BB%E4%BB%8E%E5%A4%8D%E5%88%B6%E5%BB%B6%E8%BF%9F-toc\" style=\"margin-left:80px\">8.3 \u4e3b\u4ece\u590d\u5236\u5ef6\u8fdf<\/p>\n<p id=\"%E4%B9%9D%E3%80%81%E7%89%88%E6%9C%AC%E5%85%BC%E5%AE%B9%E6%80%A7%E4%B8%8E%E7%89%B9%E6%80%A7%E5%AF%B9%E6%AF%94-toc\" style=\"margin-left:40px\">\u4e5d\u3001\u7248\u672c\u517c\u5bb9\u6027\u4e0e\u7279\u6027\u5bf9\u6bd4<\/p>\n<p id=\"%E5%8D%81%E3%80%81%E5%B7%A5%E5%85%B7%E6%8E%A8%E8%8D%90-toc\" style=\"margin-left:40px\">\u5341\u3001\u5de5\u5177\u63a8\u8350<\/p>\n<p id=\"10.1%20%E5%9C%A8%E7%BA%BF%20DDL%20%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:80px\">10.1 \u5728\u7ebf DDL \u5de5\u5177<\/p>\n<p id=\"10.2%20%E6%80%A7%E8%83%BD%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:80px\">10.2 \u6027\u80fd\u76d1\u63a7\u5de5\u5177<\/p>\n<p id=\"%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:40px\">\u603b\u7ed3<\/p>\n<hr id=\"hr-toc\" \/>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"335\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260827083215-6a8ff60fac277.png\" width=\"721\" \/><\/p>\n<h2 id=\"%E4%B8%80%E3%80%81DDL%20%E5%9F%BA%E7%A1%80%E6%A6%82%E8%BF%B0\">\u4e00\u3001DDL \u57fa\u7840\u6982\u8ff0<\/h2>\n<h4 id=\"1.1%20DDL%20%E5%AE%9A%E4%B9%89%E4%B8%8E%E4%BD%9C%E7%94%A8\">1.1 DDL \u5b9a\u4e49\u4e0e\u4f5c\u7528<\/h4>\n<p>DDL&#xff08;Data Definition Language&#xff0c;\u6570\u636e\u5b9a\u4e49\u8bed\u8a00&#xff09;\u662f\u7528\u4e8e\u521b\u5efa\u3001\u4fee\u6539\u548c\u5220\u9664\u6570\u636e\u5e93\u5bf9\u8c61&#xff08;\u5982\u8868\u3001\u7d22\u5f15\u3001\u89c6\u56fe\u7b49&#xff09;\u7684 SQL \u8bed\u53e5\u96c6\u5408\u3002\u5176\u6838\u5fc3\u4f5c\u7528\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u7ed3\u6784\u7ba1\u7406&#xff1a;\u5b9a\u4e49\u6570\u636e\u5e93\u7684\u7269\u7406\u548c\u903b\u8f91\u7ed3\u6784\u3002<\/li>\n<li>\u5143\u6570\u636e\u63a7\u5236&#xff1a;\u7ba1\u7406\u8868\u3001\u5217\u3001\u7ea6\u675f\u7b49\u5143\u6570\u636e\u4fe1\u606f\u3002<\/li>\n<li>\u6027\u80fd\u4f18\u5316&#xff1a;\u901a\u8fc7\u7d22\u5f15\u3001\u5206\u533a\u7b49\u624b\u6bb5\u63d0\u5347\u67e5\u8be2\u6548\u7387\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"1.2%20DDL%20%E8%AF%AD%E5%8F%A5%E5%88%86%E7%B1%BB\">1.2 DDL \u8bed\u53e5\u5206\u7c7b<\/h4>\n<p>\u5e38\u89c1 DDL \u8bed\u53e5\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u521b\u5efa\u64cd\u4f5c&#xff1a;CREATE DATABASE\u3001CREATE TABLE\u3001CREATE INDEX\u7b49\u3002<\/li>\n<li>\u4fee\u6539\u64cd\u4f5c&#xff1a;ALTER TABLE\u3001ALTER DATABASE\u3001RENAME TABLE\u7b49\u3002<\/li>\n<li>\u5220\u9664\u64cd\u4f5c&#xff1a;DROP TABLE\u3001TRUNCATE TABLE\u3001DROP INDEX\u7b49\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"1.3%20%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E4%B8%8E%E5%AD%98%E5%82%A8%E5%BC%95%E6%93%8E\">1.3 \u6570\u636e\u7c7b\u578b\u4e0e\u5b58\u50a8\u5f15\u64ce<\/h4>\n<h5 id=\"1.3.1%20%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B\">1.3.1 \u6570\u636e\u7c7b\u578b<\/h5>\n<p>MySQL \u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b&#xff0c;\u5408\u7406\u9009\u62e9\u53ef\u4f18\u5316\u5b58\u50a8\u548c\u67e5\u8be2\u6027\u80fd&#xff1a;<\/p>\n<ul>\n<li>\u6570\u503c\u7c7b\u578b&#xff1a;INT\u3001BIGINT\u3001DECIMAL&#xff08;\u7528\u4e8e\u8d27\u5e01\u8ba1\u7b97&#xff09;\u3002<\/li>\n<li>\u5b57\u7b26\u4e32\u7c7b\u578b&#xff1a;VARCHAR&#xff08;\u53ef\u53d8\u957f&#xff09;\u3001CHAR&#xff08;\u5b9a\u957f&#xff09;\u3001TEXT&#xff08;\u957f\u6587\u672c&#xff09;\u3002<\/li>\n<li>\u65e5\u671f\u65f6\u95f4\u7c7b\u578b&#xff1a;DATETIME\u3001TIMESTAMP&#xff08;\u81ea\u52a8\u8bb0\u5f55\u65f6\u95f4\u6233&#xff09;\u3002<\/li>\n<li>JSON \u7c7b\u578b&#xff1a;\u5b58\u50a8\u7ed3\u6784\u5316\u6570\u636e&#xff0c;\u652f\u6301\u5feb\u901f\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<h5 id=\"1.3.2%20%E5%AD%98%E5%82%A8%E5%BC%95%E6%93%8E%E5%B7%AE%E5%BC%82\">1.3.2 \u5b58\u50a8\u5f15\u64ce\u5dee\u5f02<\/h5>\n<p>\u4e0d\u540c\u5b58\u50a8\u5f15\u64ce\u5bf9 DDL \u7684\u652f\u6301\u548c\u6027\u80fd\u8868\u73b0\u4e0d\u540c&#xff1a;<\/p>\n<ul>\n<li>InnoDB&#xff1a;\u652f\u6301\u4e8b\u52a1\u3001\u884c\u7ea7\u9501\u548c\u539f\u5b50 DDL&#xff08;MySQL 8.0&#043;&#xff09;&#xff0c;\u662f\u9ed8\u8ba4\u5f15\u64ce\u3002<\/li>\n<li>MyISAM&#xff1a;\u4e0d\u652f\u6301\u4e8b\u52a1&#xff0c;DDL \u64cd\u4f5c\u9700\u9501\u8868&#xff0c;\u9002\u5408\u8bfb\u591a\u5199\u5c11\u573a\u666f\u3002<\/li>\n<li>Memory&#xff1a;\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d&#xff0c;DDL \u901f\u5ea6\u5feb\u4f46\u6570\u636e\u6613\u4e22\u5931\u3002<\/li>\n<li>Archive&#xff1a;\u9002\u5408\u5f52\u6863\u5386\u53f2\u6570\u636e&#xff0c;\u652f\u6301\u538b\u7f29\u548c\u9ad8\u6548\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E4%BA%8C%E3%80%81%E5%9F%BA%E7%A1%80%20DDL%20%E8%AF%AD%E5%8F%A5%E8%AF%A6%E8%A7%A3\">\u4e8c\u3001\u57fa\u7840 DDL \u8bed\u53e5\u8be6\u89e3<\/h3>\n<h4 id=\"2.1%20%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%8E%E8%A1%A8\">2.1 \u521b\u5efa\u6570\u636e\u5e93\u4e0e\u8868<\/h4>\n<h5 id=\"2.1.1%20%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93\">2.1.1 \u521b\u5efa\u6570\u636e\u5e93<\/h5>\n<p>CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<\/p>\n<ul>\n<li>\u5b57\u7b26\u96c6\u4e0e\u6392\u5e8f\u89c4\u5219&#xff1a;utf8mb4\u652f\u6301\u5168 Unicode \u5b57\u7b26&#xff0c;utf8mb4_general_ci\u4e3a\u5e38\u7528\u6392\u5e8f\u89c4\u5219\u3002<\/li>\n<\/ul>\n<h5 id=\"2.1.2%20%E5%88%9B%E5%BB%BA%E8%A1%A8\">2.1.2 \u521b\u5efa\u8868<\/h5>\n<p>CREATE TABLE users (<br \/>\n    id INT AUTO_INCREMENT PRIMARY KEY,<br \/>\n    username VARCHAR(50) NOT NULL,<br \/>\n    email VARCHAR(100) UNIQUE,<br \/>\n    age INT CHECK (age &gt; 0),<br \/>\n    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP<br \/>\n);<\/p>\n<ul>\n<li>\u7ea6\u675f\u6761\u4ef6&#xff1a;PRIMARY KEY&#xff08;\u4e3b\u952e&#xff09;\u3001UNIQUE&#xff08;\u552f\u4e00\u7ea6\u675f&#xff09;\u3001CHECK&#xff08;MySQL 8.0 &#043; \u652f\u6301&#xff09;\u3002<\/li>\n<li>\u81ea\u52a8\u586b\u5145&#xff1a;AUTO_INCREMENT\u7528\u4e8e\u81ea\u589e\u4e3b\u952e&#xff0c;DEFAULT CURRENT_TIMESTAMP\u81ea\u52a8\u8bb0\u5f55\u521b\u5efa\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<h4 id=\"2.2%20%E4%BF%AE%E6%94%B9%E8%A1%A8%E7%BB%93%E6%9E%84\">2.2 \u4fee\u6539\u8868\u7ed3\u6784<\/h4>\n<h5 id=\"2.2.1%20%E6%B7%BB%E5%8A%A0%E5%88%97\">2.2.1 \u6dfb\u52a0\u5217<\/h5>\n<p>ALTER TABLE users ADD COLUMN address VARCHAR(255);<\/p>\n<h5 id=\"2.2.2%20%E4%BF%AE%E6%94%B9%E5%88%97%E5%B1%9E%E6%80%A7\">2.2.2 \u4fee\u6539\u5217\u5c5e\u6027<\/h5>\n<p>ALTER TABLE users MODIFY COLUMN address VARCHAR(500);<\/p>\n<h5 id=\"2.2.3%20%E5%88%A0%E9%99%A4%E5%88%97\">2.2.3 \u5220\u9664\u5217<\/h5>\n<p>ALTER TABLE users DROP COLUMN address;<\/p>\n<h5 id=\"2.2.4%20%E9%87%8D%E5%91%BD%E5%90%8D%E8%A1%A8\">2.2.4 \u91cd\u547d\u540d\u8868<\/h5>\n<p>RENAME TABLE users TO customers;<\/p>\n<h4 id=\"2.3%20%E5%88%A0%E9%99%A4%E4%B8%8E%E6%B8%85%E7%A9%BA%E6%95%B0%E6%8D%AE\">2.3 \u5220\u9664\u4e0e\u6e05\u7a7a\u6570\u636e<\/h4>\n<h5 id=\"2.3.1%20%E5%88%A0%E9%99%A4%E8%A1%A8\">2.3.1 \u5220\u9664\u8868<\/h5>\n<p>DROP TABLE IF EXISTS users;<\/p>\n<h5 id=\"2.3.2%20%E6%B8%85%E7%A9%BA%E8%A1%A8%E6%95%B0%E6%8D%AE\">2.3.2 \u6e05\u7a7a\u8868\u6570\u636e<\/h5>\n<p>TRUNCATE TABLE users;<\/p>\n<ul>\n<li>TRUNCATE vs DELETE&#xff1a;TRUNCATE\u901f\u5ea6\u66f4\u5feb&#xff0c;\u4e0d\u8bb0\u5f55\u65e5\u5fd7&#xff0c;\u4e0d\u53ef\u56de\u6eda\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E4%B8%89%E3%80%81%E7%BA%A6%E6%9D%9F%E4%B8%8E%E7%B4%A2%E5%BC%95%E7%AE%A1%E7%90%86\">\u4e09\u3001\u7ea6\u675f\u4e0e\u7d22\u5f15\u7ba1\u7406<\/h3>\n<h4 id=\"3.1%20%E7%BA%A6%E6%9D%9F%E6%9D%A1%E4%BB%B6\">3.1 \u7ea6\u675f\u6761\u4ef6<\/h4>\n<h5 id=\"3.1.1%20%E4%B8%BB%E9%94%AE%E7%BA%A6%E6%9D%9F\">3.1.1 \u4e3b\u952e\u7ea6\u675f<\/h5>\n<p>ALTER TABLE users ADD PRIMARY KEY (id);<\/p>\n<h5 id=\"3.1.2%20%E5%A4%96%E9%94%AE%E7%BA%A6%E6%9D%9F\">3.1.2 \u5916\u952e\u7ea6\u675f<\/h5>\n<p>ALTER TABLE orders ADD CONSTRAINT fk_user_id FOREIGN KEY (user_id) REFERENCES users(id);<\/p>\n<h5 id=\"3.1.3%20%E5%94%AF%E4%B8%80%E7%BA%A6%E6%9D%9F\">3.1.3 \u552f\u4e00\u7ea6\u675f<\/h5>\n<p>CREATE UNIQUE INDEX idx_email ON users(email);<\/p>\n<h5 id=\"3.1.4%20%E6%A3%80%E6%9F%A5%E7%BA%A6%E6%9D%9F%EF%BC%88MySQL%208.0%2B%EF%BC%89\">3.1.4 \u68c0\u67e5\u7ea6\u675f&#xff08;MySQL 8.0&#043;&#xff09;<\/h5>\n<p>ALTER TABLE users ADD CHECK (age &gt; 0);<\/p>\n<h4 id=\"3.2%20%E7%B4%A2%E5%BC%95%E7%AE%A1%E7%90%86\">3.2 \u7d22\u5f15\u7ba1\u7406<\/h4>\n<h5 id=\"3.2.1%20%E5%88%9B%E5%BB%BA%E7%B4%A2%E5%BC%95\">3.2.1 \u521b\u5efa\u7d22\u5f15<\/h5>\n<p>&#8212; \u666e\u901a\u7d22\u5f15<br \/>\nCREATE INDEX idx_name ON users(name);<br \/>\n&#8212; \u5168\u6587\u7d22\u5f15<br \/>\nCREATE FULLTEXT INDEX idx_content ON articles(content);<\/p>\n<h5 id=\"3.2.2%20%E5%88%A0%E9%99%A4%E7%B4%A2%E5%BC%95\">3.2.2 \u5220\u9664\u7d22\u5f15<\/h5>\n<p>DROP INDEX idx_name ON users;<\/p>\n<h5 id=\"3.2.3%20%E4%B8%8D%E5%8F%AF%E8%A7%81%E7%B4%A2%E5%BC%95%EF%BC%88MySQL%208.0%2B%EF%BC%89\">3.2.3 \u4e0d\u53ef\u89c1\u7d22\u5f15&#xff08;MySQL 8.0&#043;&#xff09;<\/h5>\n<p>ALTER TABLE users ALTER INDEX idx_name INVISIBLE;<\/p>\n<ul>\n<li>\u7528\u9014&#xff1a;\u6d4b\u8bd5\u7d22\u5f15\u5220\u9664\u5bf9\u6027\u80fd\u7684\u5f71\u54cd&#xff0c;\u907f\u514d\u76f4\u63a5\u5220\u9664\u5bfc\u81f4\u7684\u98ce\u9669\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E5%9B%9B%E3%80%81%E8%A7%86%E5%9B%BE%E4%B8%8E%E5%88%86%E5%8C%BA%E8%A1%A8\">\u56db\u3001\u89c6\u56fe\u4e0e\u5206\u533a\u8868<\/h3>\n<h4 id=\"4.1%20%E8%A7%86%E5%9B%BE%E6%93%8D%E4%BD%9C\">4.1 \u89c6\u56fe\u64cd\u4f5c<\/h4>\n<h5 id=\"4.1.1%20%E5%88%9B%E5%BB%BA%E8%A7%86%E5%9B%BE\">4.1.1 \u521b\u5efa\u89c6\u56fe<\/h5>\n<p>CREATE VIEW adult_users AS<br \/>\nSELECT id, name, email FROM users WHERE age &gt; 18;<\/p>\n<h5 id=\"4.1.2%20%E4%BF%AE%E6%94%B9%E8%A7%86%E5%9B%BE\">4.1.2 \u4fee\u6539\u89c6\u56fe<\/h5>\n<p>ALTER VIEW adult_users AS<br \/>\nSELECT id, name FROM users WHERE age &gt; 21;<\/p>\n<h5 id=\"4.1.3%20%E5%88%A0%E9%99%A4%E8%A7%86%E5%9B%BE\">4.1.3 \u5220\u9664\u89c6\u56fe<\/h5>\n<p>DROP VIEW IF EXISTS adult_users;<\/p>\n<h4 id=\"4.2%20%E5%88%86%E5%8C%BA%E8%A1%A8\">4.2 \u5206\u533a\u8868<\/h4>\n<h5 id=\"4.2.1%20%E5%88%9B%E5%BB%BA%E5%88%86%E5%8C%BA%E8%A1%A8\">4.2.1 \u521b\u5efa\u5206\u533a\u8868<\/h5>\n<p>CREATE TABLE sales (<br \/>\n    sale_id INT,<br \/>\n    sale_date DATE<br \/>\n) PARTITION BY RANGE (YEAR(sale_date)) (<br \/>\n    PARTITION p2020 VALUES LESS THAN (2021),<br \/>\n    PARTITION p2021 VALUES LESS THAN (2022),<br \/>\n    PARTITION p2022 VALUES LESS THAN MAXVALUE<br \/>\n);<\/p>\n<h5 id=\"4.2.2%20%E4%BF%AE%E6%94%B9%E5%88%86%E5%8C%BA\">4.2.2 \u4fee\u6539\u5206\u533a<\/h5>\n<p>ALTER TABLE sales REORGANIZE PARTITION p2022 INTO (<br \/>\n    PARTITION p2022 VALUES LESS THAN (2023),<br \/>\n    PARTITION p2023 VALUES LESS THAN MAXVALUE<br \/>\n);<\/p>\n<h5 id=\"4.2.3%20%E5%88%A0%E9%99%A4%E5%88%86%E5%8C%BA\">4.2.3 \u5220\u9664\u5206\u533a<\/h5>\n<p>ALTER TABLE sales DROP PARTITION p2020;<\/p>\n<hr \/>\n<h3 id=\"%E4%BA%94%E3%80%81%E4%BA%8B%E5%8A%A1%E4%B8%8E%20DDL%20%E5%8E%9F%E5%AD%90%E6%80%A7\">\u4e94\u3001\u4e8b\u52a1\u4e0e DDL \u539f\u5b50\u6027<\/h3>\n<h4 id=\"5.1%20DDL%20%E4%B8%8E%E4%BA%8B%E5%8A%A1%E7%9A%84%E5%85%B3%E7%B3%BB\">5.1 DDL \u4e0e\u4e8b\u52a1\u7684\u5173\u7cfb<\/h4>\n<ul>\n<li>\u9690\u5f0f\u63d0\u4ea4&#xff1a;DDL \u8bed\u53e5\u4f1a\u9690\u5f0f\u63d0\u4ea4\u5f53\u524d\u4e8b\u52a1&#xff0c;\u4e0d\u53ef\u56de\u6eda\u3002<\/li>\n<li>\u539f\u5b50 DDL&#xff08;MySQL 8.0&#043;&#xff09;&#xff1a;\u901a\u8fc7 InnoDB \u5b58\u50a8\u5f15\u64ce\u5b9e\u73b0&#xff0c;\u786e\u4fdd DDL \u64cd\u4f5c\u8981\u4e48\u5168\u90e8\u6210\u529f&#xff0c;\u8981\u4e48\u56de\u6eda\u3002<\/li>\n<\/ul>\n<h4 id=\"5.2%20%E5%8E%9F%E5%AD%90%20DDL%20%E7%89%B9%E6%80%A7\">5.2 \u539f\u5b50 DDL \u7279\u6027<\/h4>\n<ul>\n<li>\u652f\u6301\u64cd\u4f5c&#xff1a;CREATE\u3001ALTER\u3001DROP\u3001TRUNCATE\u7b49\u3002<\/li>\n<li>\u5143\u6570\u636e\u5b58\u50a8&#xff1a;\u6570\u636e\u5b57\u5178\u5b58\u50a8\u5728 InnoDB \u7cfb\u7edf\u8868\u4e2d&#xff0c;\u652f\u6301\u4e8b\u52a1\u6027\u66f4\u65b0\u3002<\/li>\n<li>\u65e5\u5fd7\u673a\u5236&#xff1a;DDL \u65e5\u5fd7\u5199\u5165mysql.innodb_ddl_log\u8868&#xff0c;\u7528\u4e8e\u56de\u6eda\u548c\u6062\u590d\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E5%85%AD%E3%80%81%E9%AB%98%E7%BA%A7%20DDL%20%E7%89%B9%E6%80%A7%E4%B8%8E%E4%BC%98%E5%8C%96\">\u516d\u3001\u9ad8\u7ea7 DDL \u7279\u6027\u4e0e\u4f18\u5316<\/h3>\n<h4 id=\"6.1%20%E5%9C%A8%E7%BA%BF%20DDL%EF%BC%88Online%20DDL%EF%BC%89\">6.1 \u5728\u7ebf DDL&#xff08;Online DDL&#xff09;<\/h4>\n<h5 id=\"6.1.1%20%E6%A0%B8%E5%BF%83%E5%8E%9F%E7%90%86\">6.1.1 \u6838\u5fc3\u539f\u7406<\/h5>\n<p>\u901a\u8fc7\u5206\u9636\u6bb5\u6267\u884c DDL&#xff0c;\u5141\u8bb8\u5e76\u53d1\u8bfb\u5199\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u51c6\u5907\u9636\u6bb5&#xff1a;\u521b\u5efa\u65b0\u8868\u7ed3\u6784\u6216\u7d22\u5f15\u3002<\/li>\n<li>\u62f7\u8d1d\u9636\u6bb5&#xff1a;\u590d\u5236\u6570\u636e\u5230\u65b0\u7ed3\u6784&#xff0c;\u8bb0\u5f55\u589e\u91cf\u65e5\u5fd7\u3002<\/li>\n<li>\u5e94\u7528\u9636\u6bb5&#xff1a;\u56de\u653e\u589e\u91cf\u65e5\u5fd7&#xff0c;\u786e\u4fdd\u6570\u636e\u4e00\u81f4\u6027\u3002<\/li>\n<li>\u66ff\u6362\u9636\u6bb5&#xff1a;\u5207\u6362\u8868\u540d&#xff0c;\u5b8c\u6210\u53d8\u66f4\u3002<\/li>\n<h5 id=\"6.1.2%20%E8%AF%AD%E6%B3%95%E4%B8%8E%E9%80%89%E9%A1%B9\">6.1.2 \u8bed\u6cd5\u4e0e\u9009\u9879<\/h5>\n<p>ALTER TABLE users ADD COLUMN new_col INT ALGORITHM&#061;INPLACE, LOCK&#061;NONE;<\/p>\n<ul>\n<li>ALGORITHM&#xff1a;INSTANT&#xff08;\u4ec5\u4fee\u6539\u5143\u6570\u636e&#xff09;\u3001INPLACE&#xff08;\u539f\u5730\u4fee\u6539&#xff09;\u3001COPY&#xff08;\u590d\u5236\u8868&#xff09;\u3002<\/li>\n<li>LOCK&#xff1a;NONE&#xff08;\u65e0\u9501&#xff09;\u3001SHARE&#xff08;\u5171\u4eab\u9501&#xff09;\u3001EXCLUSIVE&#xff08;\u6392\u4ed6\u9501&#xff09;\u3002<\/li>\n<\/ul>\n<h4 id=\"6.2%20%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96%E7%AD%96%E7%95%A5\">6.2 \u6027\u80fd\u4f18\u5316\u7b56\u7565<\/h4>\n<h5 id=\"6.2.1%20%E6%8B%86%E5%88%86%E5%A4%A7%E6%93%8D%E4%BD%9C\">6.2.1 \u62c6\u5206\u5927\u64cd\u4f5c<\/h5>\n<p>\u5c06\u590d\u6742 DDL \u62c6\u5206\u4e3a\u591a\u4e2a\u5c0f\u6b65\u9aa4&#xff0c;\u51cf\u5c11\u9501\u65f6\u95f4&#xff1a;<\/p>\n<p>&#8212; \u5148\u6dfb\u52a0\u5217&#xff0c;\u518d\u586b\u5145\u6570\u636e<br \/>\nALTER TABLE orders ADD COLUMN new_col INT;<br \/>\nUPDATE orders SET new_col &#061; 0;<br \/>\nALTER TABLE orders ALTER COLUMN new_col SET NOT NULL;<\/p>\n<h5 id=\"6.2.2%20%E5%BB%B6%E8%BF%9F%E7%B4%A2%E5%BC%95%E5%88%9B%E5%BB%BA\">6.2.2 \u5ef6\u8fdf\u7d22\u5f15\u521b\u5efa<\/h5>\n<p>\u5148\u5bfc\u5165\u6570\u636e&#xff0c;\u518d\u521b\u5efa\u7d22\u5f15\u4ee5\u51cf\u5c11\u9501\u7ade\u4e89&#xff1a;<\/p>\n<p>CREATE TABLE tmp_orders LIKE orders;<br \/>\nINSERT INTO tmp_orders SELECT * FROM orders;<br \/>\nDROP TABLE orders;<br \/>\nRENAME TABLE tmp_orders TO orders;<br \/>\nCREATE INDEX idx_order_date ON orders(order_date);<\/p>\n<h5 id=\"6.2.3%20%E7%9B%91%E6%8E%A7%E4%B8%8E%E8%B0%83%E4%BC%98\">6.2.3 \u76d1\u63a7\u4e0e\u8c03\u4f18<\/h5>\n<ul>\n<li>MDL \u9501\u76d1\u63a7&#xff1a;\u4f7f\u7528sys.schema_table_lock_waits\u67e5\u770b\u9501\u7b49\u5f85\u3002<\/li>\n<li>\u53c2\u6570\u8c03\u6574&#xff1a;innodb_online_alter_log_max_size\u63a7\u5236\u589e\u91cf\u65e5\u5fd7\u5927\u5c0f\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E4%B8%83%E3%80%81%E6%9D%83%E9%99%90%E7%AE%A1%E7%90%86%E4%B8%8E%E5%AE%89%E5%85%A8%E5%AE%9E%E8%B7%B5\">\u4e03\u3001\u6743\u9650\u7ba1\u7406\u4e0e\u5b89\u5168\u5b9e\u8df5<\/h3>\n<h4 id=\"7.1%20DDL%20%E6%9D%83%E9%99%90%E5%88%86%E9%85%8D\">7.1 DDL \u6743\u9650\u5206\u914d<\/h4>\n<h5 id=\"7.1.1%20%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E5%B9%B6%E6%8E%88%E6%9D%83\">7.1.1 \u521b\u5efa\u7528\u6237\u5e76\u6388\u6743<\/h5>\n<p>CREATE USER &#039;ddl_user&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;<br \/>\nGRANT CREATE, ALTER, DROP ON mydatabase.* TO &#039;ddl_user&#039;&#064;&#039;localhost&#039;;<\/p>\n<h5 id=\"7.1.2%20%E5%9B%9E%E6%94%B6%E6%9D%83%E9%99%90\">7.1.2 \u56de\u6536\u6743\u9650<\/h5>\n<p>REVOKE ALTER ON mydatabase.* FROM &#039;ddl_user&#039;&#064;&#039;localhost&#039;;<\/p>\n<h4 id=\"7.2%20%E5%AE%89%E5%85%A8%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5\">7.2 \u5b89\u5168\u6700\u4f73\u5b9e\u8df5<\/h4>\n<ul>\n<li>\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff1a;\u4ec5\u6388\u4e88\u5fc5\u8981\u6743\u9650&#xff0c;\u907f\u514d\u8fc7\u5ea6\u6388\u6743\u3002<\/li>\n<li>\u5907\u4efd\u4e0e\u56de\u6eda&#xff1a;\u6267\u884c DDL \u524d\u5907\u4efd\u6570\u636e&#xff0c;\u4f7f\u7528pt-online-schema-change\u7b49\u5de5\u5177\u964d\u4f4e\u98ce\u9669\u3002<\/li>\n<li>\u7248\u672c\u517c\u5bb9\u6027&#xff1a;\u6839\u636e MySQL \u7248\u672c\u9009\u62e9\u5408\u9002\u7684 DDL \u65b9\u5f0f&#xff0c;\u5982 MySQL 8.0 \u4f18\u5148\u4f7f\u7528\u539f\u5b50 DDL\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E5%85%AB%E3%80%81%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\">\u516b\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4 id=\"8.1%20DDL%20%E6%89%A7%E8%A1%8C%E7%BC%93%E6%85%A2\">8.1 DDL \u6267\u884c\u7f13\u6162<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;\u6570\u636e\u91cf\u5927\u3001\u9501\u7ade\u4e89\u3001\u5916\u952e\u7ea6\u675f\u68c0\u67e5\u3002<\/li>\n<li>\u89e3\u51b3\u65b9\u6848&#xff1a;\u4f7f\u7528 Online DDL\u3001\u62c6\u5206\u64cd\u4f5c\u3001\u7981\u7528\u5916\u952e\u7ea6\u675f\u68c0\u67e5\u3002<\/li>\n<\/ul>\n<h4 id=\"8.2%20%E5%94%AF%E4%B8%80%E7%B4%A2%E5%BC%95%E5%86%B2%E7%AA%81\">8.2 \u552f\u4e00\u7d22\u5f15\u51b2\u7a81<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;\u5e76\u53d1 DML \u5bfc\u81f4\u4e34\u65f6\u91cd\u590d\u952e\u3002<\/li>\n<li>\u89e3\u51b3\u65b9\u6848&#xff1a;\u91cd\u8bd5\u64cd\u4f5c\u6216\u8c03\u6574\u4e8b\u52a1\u9694\u79bb\u7ea7\u522b\u3002<\/li>\n<\/ul>\n<h4 id=\"8.3%20%E4%B8%BB%E4%BB%8E%E5%A4%8D%E5%88%B6%E5%BB%B6%E8%BF%9F\">8.3 \u4e3b\u4ece\u590d\u5236\u5ef6\u8fdf<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;DDL \u64cd\u4f5c\u5728\u4ece\u5e93\u4e32\u884c\u6267\u884c\u3002<\/li>\n<li>\u89e3\u51b3\u65b9\u6848&#xff1a;\u9009\u62e9\u4f4e\u5cf0\u671f\u6267\u884c DDL&#xff0c;\u6216\u4f7f\u7528\u5e76\u884c\u590d\u5236&#xff08;MySQL 5.7&#043;&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E4%B9%9D%E3%80%81%E7%89%88%E6%9C%AC%E5%85%BC%E5%AE%B9%E6%80%A7%E4%B8%8E%E7%89%B9%E6%80%A7%E5%AF%B9%E6%AF%94\">\u4e5d\u3001\u7248\u672c\u517c\u5bb9\u6027\u4e0e\u7279\u6027\u5bf9\u6bd4<\/h3>\n<table>\n<tr>\u7279\u6027MySQL 5.6MySQL 5.7MySQL 8.0&#043;<\/tr>\n<tbody>\n<tr>\n<td>\u539f\u5b50 DDL<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u652f\u6301&#xff08;InnoDB&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Online DDL<\/td>\n<td>\u90e8\u5206\u652f\u6301<\/td>\n<td>\u589e\u5f3a\u652f\u6301<\/td>\n<td>\u5168\u9762\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>INSTANT \u7b97\u6cd5<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u53ef\u89c1\u7d22\u5f15<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td>\u964d\u5e8f\u7d22\u5f15<\/td>\n<td>\u8bed\u6cd5\u652f\u6301\u4f46\u65e0\u6548<\/td>\n<td>\u8bed\u6cd5\u652f\u6301\u4f46\u65e0\u6548<\/td>\n<td>\u5b9e\u9645\u964d\u5e8f\u5b58\u50a8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"%E5%8D%81%E3%80%81%E5%B7%A5%E5%85%B7%E6%8E%A8%E8%8D%90\">\u5341\u3001\u5de5\u5177\u63a8\u8350<\/h3>\n<h4 id=\"10.1%20%E5%9C%A8%E7%BA%BF%20DDL%20%E5%B7%A5%E5%85%B7\">10.1 \u5728\u7ebf DDL \u5de5\u5177<\/h4>\n<ul>\n<li>pt-online-schema-change&#xff1a;\u9002\u7528\u4e8e MySQL 5.5 \u53ca\u4ee5\u4e0b\u7248\u672c&#xff0c;\u901a\u8fc7\u89e6\u53d1\u5668\u540c\u6b65\u589e\u91cf\u6570\u636e\u3002<\/li>\n<li>gh-ost&#xff1a;\u57fa\u4e8e Binlog \u540c\u6b65\u589e\u91cf&#xff0c;\u51cf\u5c11\u89e6\u53d1\u5668\u5f00\u9500\u3002<\/li>\n<li>MySQL \u539f\u751f Online DDL&#xff1a;MySQL 5.6 &#043; \u5185\u7f6e\u652f\u6301&#xff0c;\u63a8\u8350\u4f18\u5148\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<h4 id=\"10.2%20%E6%80%A7%E8%83%BD%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7\">10.2 \u6027\u80fd\u76d1\u63a7\u5de5\u5177<\/h4>\n<ul>\n<li>sys schema&#xff1a;\u63d0\u4f9b MDL \u9501\u3001\u7d22\u5f15\u4f7f\u7528\u60c5\u51b5\u7b49\u76d1\u63a7\u89c6\u56fe\u3002<\/li>\n<li>pt-index-usage&#xff1a;\u5206\u6790\u7d22\u5f15\u4f7f\u7528\u9891\u7387&#xff0c;\u4f18\u5316\u7d22\u5f15\u8bbe\u8ba1\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E6%80%BB%E7%BB%93\">\u603b\u7ed3<\/h3>\n<p>MySQL DDL \u662f\u6570\u636e\u5e93\u7ba1\u7406\u7684\u6838\u5fc3\u529f\u80fd&#xff0c;\u638c\u63e1\u5176\u8bed\u6cd5\u3001\u7279\u6027\u548c\u4f18\u5316\u7b56\u7565\u5bf9\u9ad8\u6548\u7ba1\u7406\u6570\u636e\u5e93\u81f3\u5173\u91cd\u8981\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u539f\u5b50 DDL\u3001Online DDL\u3001\u5206\u533a\u8868\u548c\u7d22\u5f15&#xff0c;\u7ed3\u5408\u6743\u9650\u7ba1\u7406\u4e0e\u6027\u80fd\u76d1\u63a7&#xff0c;\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u6570\u636e\u5e93\u7684\u7a33\u5b9a\u6027\u548c\u6027\u80fd\u3002\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d&#xff0c;\u9700\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u5408\u9002\u7684 DDL \u65b9\u5f0f&#xff0c;\u5e76\u4e25\u683c\u9075\u5faa\u5b89\u5168\u6700\u4f73\u5b9e\u8df5&#xff0c;\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u4e00\u81f4\u6027\u548c\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55<br \/>\n\u4e00\u3001DDL \u57fa\u7840\u6982\u8ff0<br \/>\n1.1 DDL \u5b9a\u4e49\u4e0e\u4f5c\u7528<br \/>\n1.2 DDL \u8bed\u53e5\u5206\u7c7b<br \/>\n1.3 \u6570\u636e\u7c7b\u578b\u4e0e\u5b58\u50a8\u5f15\u64ce<br \/>\n1.3.1 \u6570\u636e\u7c7b\u578b<br \/>\n1.3.2 \u5b58\u50a8\u5f15\u64ce\u5dee\u5f02<br \/>\n\u4e8c\u3001\u57fa\u7840 DDL \u8bed\u53e5\u8be6\u89e3<br \/>\n2.1 \u521b\u5efa\u6570\u636e\u5e93\u4e0e\u8868<br \/>\n2.1.1 \u521b\u5efa\u6570\u636e\u5e93<br \/>\n2.1.2 \u521b\u5efa\u8868<br \/>\n2.2 \u4fee\u6539\u8868\u7ed3\u6784<br \/>\n2.2.1 \u6dfb\u52a0\u5217<br \/>\n2.2.2 \u4fee\u6539\u5217\u5c5e\u6027<br \/>\n2.2.3 \u5220\u9664\u5217<br \/>\n2.2.4 \u91cd\u547d\u540d\u8868<br \/>\n2.3 \u5220\u9664\u4e0e\u6e05\u7a7a\u6570\u636e<br \/>\n2.3.1 \u5220\u9664\u8868<br \/>\n2.3.2 \u6e05\u7a7a\u8868\u6570\u636e<br \/>\n\u4e09\u3001\u7ea6\u675f\u4e0e\u7d22\u5f15<\/p>\n","protected":false},"author":2,"featured_media":96376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,323,100],"topic":[],"class_list":["post-96377","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mysql","tag-323","tag-100"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/96377.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u4e00\u3001DDL \u57fa\u7840\u6982\u8ff0 1.1 DDL \u5b9a\u4e49\u4e0e\u4f5c\u7528 1.2 DDL \u8bed\u53e5\u5206\u7c7b 1.3 \u6570\u636e\u7c7b\u578b\u4e0e\u5b58\u50a8\u5f15\u64ce 1.3.1 \u6570\u636e\u7c7b\u578b 1.3.2 \u5b58\u50a8\u5f15\u64ce\u5dee\u5f02 \u4e8c\u3001\u57fa\u7840 DDL \u8bed\u53e5\u8be6\u89e3 2.1 \u521b\u5efa\u6570\u636e\u5e93\u4e0e\u8868 2.1.1 \u521b\u5efa\u6570\u636e\u5e93 2.1.2 \u521b\u5efa\u8868 2.2 \u4fee\u6539\u8868\u7ed3\u6784 2.2.1 \u6dfb\u52a0\u5217 2.2.2 \u4fee\u6539\u5217\u5c5e\u6027 2.2.3 \u5220\u9664\u5217 2.2.4 \u91cd\u547d\u540d\u8868 2.3 \u5220\u9664\u4e0e\u6e05\u7a7a\u6570\u636e 2.3.1 \u5220\u9664\u8868 2.3.2 \u6e05\u7a7a\u8868\u6570\u636e \u4e09\u3001\u7ea6\u675f\u4e0e\u7d22\u5f15\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/96377.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-27T08:32:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260827083215-6a8ff60fac277.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96377.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/96377.html\",\"name\":\"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-27T08:32:16+00:00\",\"dateModified\":\"2026-08-27T08:32:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/96377.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/96377.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96377.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/96377.html","og_locale":"zh_CN","og_type":"article","og_title":"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u4e00\u3001DDL \u57fa\u7840\u6982\u8ff0 1.1 DDL \u5b9a\u4e49\u4e0e\u4f5c\u7528 1.2 DDL \u8bed\u53e5\u5206\u7c7b 1.3 \u6570\u636e\u7c7b\u578b\u4e0e\u5b58\u50a8\u5f15\u64ce 1.3.1 \u6570\u636e\u7c7b\u578b 1.3.2 \u5b58\u50a8\u5f15\u64ce\u5dee\u5f02 \u4e8c\u3001\u57fa\u7840 DDL \u8bed\u53e5\u8be6\u89e3 2.1 \u521b\u5efa\u6570\u636e\u5e93\u4e0e\u8868 2.1.1 \u521b\u5efa\u6570\u636e\u5e93 2.1.2 \u521b\u5efa\u8868 2.2 \u4fee\u6539\u8868\u7ed3\u6784 2.2.1 \u6dfb\u52a0\u5217 2.2.2 \u4fee\u6539\u5217\u5c5e\u6027 2.2.3 \u5220\u9664\u5217 2.2.4 \u91cd\u547d\u540d\u8868 2.3 \u5220\u9664\u4e0e\u6e05\u7a7a\u6570\u636e 2.3.1 \u5220\u9664\u8868 2.3.2 \u6e05\u7a7a\u8868\u6570\u636e \u4e09\u3001\u7ea6\u675f\u4e0e\u7d22\u5f15","og_url":"https:\/\/www.wsisp.com\/helps\/96377.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-27T08:32:16+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260827083215-6a8ff60fac277.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/96377.html","url":"https:\/\/www.wsisp.com\/helps\/96377.html","name":"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-27T08:32:16+00:00","dateModified":"2026-08-27T08:32:16+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/96377.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/96377.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/96377.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MySQL DDL\u64cd\u4f5c\u5168\u89e3\u6790\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff0c\u5305\u542b\u7d22\u5f15\u89c6\u56fe\u5206\u533a\u8868\u7b49\u5168\u64cd\u4f5c\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=96377"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96377\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/96376"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=96377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=96377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=96377"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=96377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}