{"id":94138,"date":"2026-08-13T20:25:30","date_gmt":"2026-08-13T12:25:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94138.html"},"modified":"2026-08-13T20:25:30","modified_gmt":"2026-08-13T12:25:30","slug":"mysql-%e8%a1%a8%e7%9a%84%e6%93%8d%e4%bd%9c%ef%bc%9a%e8%a1%a8%e7%9a%84%e5%a2%9e%e5%88%a0%e6%94%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94138.html","title":{"rendered":"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"1.%20%E5%88%9B%E5%BB%BA%E8%A1%A8-toc\" style=\"margin-left:0px\">1. \u521b\u5efa\u8868<\/p>\n<p id=\"2.%20%E6%9F%A5%E7%9C%8B%E8%A1%A8%E7%BB%93%E6%9E%84-toc\" style=\"margin-left:0px\">2. \u67e5\u770b\u8868\u7ed3\u6784<\/p>\n<p id=\"3.%20%E4%BF%AE%E6%94%B9%E8%A1%A8-toc\" style=\"margin-left:0px\">3. \u4fee\u6539\u8868<\/p>\n<p id=\"3.1%20%E6%8F%92%E5%85%A5%E6%95%B0%E6%8D%AE-toc\" style=\"margin-left:40px\">3.1 \u63d2\u5165\u6570\u636e<\/p>\n<p id=\"3.2%20%E6%B7%BB%E5%8A%A0%E5%AD%97%E6%AE%B5-toc\" style=\"margin-left:40px\">3.2 \u6dfb\u52a0\u5b57\u6bb5<\/p>\n<p id=\"3.3%20%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5-toc\" style=\"margin-left:40px\">3.3 \u4fee\u6539\u5b57\u6bb5<\/p>\n<p id=\"3.4%20%E5%88%A0%E9%99%A4%E5%AD%97%E6%AE%B5-toc\" style=\"margin-left:40px\">3.4 \u5220\u9664\u5b57\u6bb5<\/p>\n<p id=\"3.5%20%E4%BF%AE%E6%94%B9%E8%A1%A8%E5%90%8D-toc\" style=\"margin-left:40px\">3.5 \u4fee\u6539\u8868\u540d<\/p>\n<p id=\"3.6%20%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5%E5%90%8D%E5%AD%97-toc\" style=\"margin-left:40px\">3.6 \u4fee\u6539\u5b57\u6bb5\u540d\u5b57<\/p>\n<p id=\"3.7%20%E5%88%A0%E9%99%A4%E8%A1%A8-toc\" style=\"margin-left:40px\">3.7 \u5220\u9664\u8868<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"1.%20%E5%88%9B%E5%BB%BA%E8%A1%A8\">1. \u521b\u5efa\u8868<\/h2>\n<p>CREATE TABLE table_name (<br \/>\n field1 datatype,<br \/>\n field2 datatype,<br \/>\n field3 datatype<br \/>\n) character set \u5b57\u7b26\u96c6 collate \u6821\u9a8c\u89c4\u5219 engine \u5b58\u50a8\u5f15\u64ce; <\/p>\n<ul>\n<li>field \u8868\u793a\u5217\u540d<\/li>\n<li>datatype \u8868\u793a\u5217\u7684\u7c7b\u578b<\/li>\n<li>character set \u5b57\u7b26\u96c6&#xff0c;\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u5b57\u7b26\u96c6&#xff0c;\u5219\u4ee5\u6240\u5728\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u4e3a\u51c6<\/li>\n<li>collate \u6821\u9a8c\u89c4\u5219&#xff0c;\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u6821\u9a8c\u89c4\u5219&#xff0c;\u5219\u4ee5\u6240\u5728\u6570\u636e\u5e93\u7684\u6821\u9a8c\u89c4\u5219\u4e3a\u51c6<\/li>\n<\/ul>\n<p>\u4f8b\u5b50&#xff1a;<\/p>\n<p>create \u00a0table user1 (<br \/>\n \u00a0 id int,<br \/>\n \u00a0 name varchar(20) comment &#039;\u7528\u6237\u540d&#039;,<br \/>\n \u00a0 password char(32) comment &#039;\u7528\u6237\u7684\u5bc6\u7801&#039;,<br \/>\n \u00a0 birthday date comment &#039;\u7528\u6237\u7684\u751f\u65e5&#039;<br \/>\n) character set utf8 engine MyISAM;<br \/>\ncreate \u00a0table user2 (<br \/>\n \u00a0 id int,<br \/>\n \u00a0 name varchar(20) comment &#039;\u7528\u6237\u540d&#039;,<br \/>\n \u00a0 password char(32) comment &#039;\u7528\u6237\u7684\u5bc6\u7801&#039;,<br \/>\n \u00a0 birthday date comment &#039;\u7528\u6237\u7684\u751f\u65e5&#039;<br \/>\n) character set utf8 engine InnoDB; <\/p>\n<p>\u4e0d\u540c\u7684\u5b58\u50a8\u5f15\u64ce&#xff0c;\u521b\u5efa\u8868\u7684\u6587\u4ef6\u4e0d\u4e00\u6837\u3002<\/p>\n<p>root&#064;iZuf6dza8bf7vp0zjipnhmZ:\/var\/lib\/mysql\/users# ll<br \/>\ntotal 128<br \/>\ndrwxr-x&#8212; 2 mysql mysql   4096 Aug 10 01:32 .\/<br \/>\ndrwx&#8212;&#8212; 9 mysql mysql   4096 Aug 10 01:21 ..\/<br \/>\n-rw-r&#8212;&#8211; 1 mysql mysql   3989 Aug 10 01:27 user1_365.sdi<br \/>\n-rw-r&#8212;&#8211; 1 mysql mysql      0 Aug 10 01:27 user1.MYD<br \/>\n-rw-r&#8212;&#8211; 1 mysql mysql   1024 Aug 10 01:27 user1.MYI<br \/>\n-rw-r&#8212;&#8211; 1 mysql mysql 114688 Aug 10 01:32 user2.ibd<\/p>\n<h2 id=\"2.%20%E6%9F%A5%E7%9C%8B%E8%A1%A8%E7%BB%93%E6%9E%84\">2. \u67e5\u770b\u8868\u7ed3\u6784<\/h2>\n<p>desc \u8868\u540d; <\/p>\n<p>desc&#xff1a;describe&#xff0c;\u63cf\u8ff0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"276\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813122529-6a7db7b934eb3.png\" width=\"631\" \/><\/p>\n<h2 id=\"3.%20%E4%BF%AE%E6%94%B9%E8%A1%A8\">3. \u4fee\u6539\u8868<\/h2>\n<p>\u5728\u9879\u76ee\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u7ecf\u5e38\u4fee\u6539\u67d0\u4e2a\u8868\u7684\u7ed3\u6784&#xff0c;\u6bd4\u5982\u5b57\u6bb5\u540d\u5b57&#xff0c;\u5b57\u6bb5\u5927\u5c0f&#xff0c;\u5b57\u6bb5\u7c7b\u578b&#xff0c;\u8868\u7684\u5b57\u7b26\u96c6\u7c7b\u578b&#xff0c;\u8868\u7684\u5b58\u50a8\u5f15\u64ce\u7b49\u7b49\u3002\u6211\u4eec\u8fd8\u6709\u9700\u6c42&#xff0c;\u6dfb\u52a0\u5b57\u6bb5&#xff0c;\u5220\u9664\u5b57\u6bb5\u7b49\u7b49\u3002\u8fd9\u65f6\u6211\u4eec\u5c31\u9700\u8981\u4fee\u6539\u8868\u3002<\/p>\n<p>ALTER TABLE tablename ADD (column datatype [DEFAULT expr][,column<br \/>\ndatatype]&#8230;);<\/p>\n<p>ALTER TABLE tablename MODIfy (column datatype [DEFAULT expr][,column<br \/>\ndatatype]&#8230;);<\/p>\n<p>ALTER TABLE tablename DROP (column);<\/p>\n<h3 id=\"3.1%20%E6%8F%92%E5%85%A5%E6%95%B0%E6%8D%AE\">3.1 \u63d2\u5165\u6570\u636e<\/h3>\n<ul>\n<li>\u5728 user1 \u8868\u6dfb\u52a0\u4e24\u6761\u8bb0\u5f55&#xff1a;<\/li>\n<\/ul>\n<p>insert into user1 values(1,&#039;\u5f20\u4e09&#039;,&#039;123456&#039;,&#039;2005-10-15&#039;),(2,&#039;\u674e\u56db&#039;,&#039;54321&#039;,&#039;2004-10-<br \/>\n15&#039;);<\/p>\n<h3 id=\"3.2%20%E6%B7%BB%E5%8A%A0%E5%AD%97%E6%AE%B5\" style=\"background-color:transparent\">3.2 \u6dfb\u52a0\u5b57\u6bb5<\/h3>\n<ul>\n<li>\u5728 user1 \u8868\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5b57\u6bb5&#xff0c;\u7528\u6237\u4fdd\u5b58\u56fe\u7247\u8def\u5f84&#xff1a;<\/li>\n<\/ul>\n<p>\u653e\u5230 birthday \u5b57\u6bb5\u540e&#xff1a;<\/p>\n<p>alter table users add image_path varchar(100) comment &#039;\u7528\u6237\u5934\u50cf\u8def\u5f84&#039; after<br \/>\nbirthday; <\/p>\n<p>\u653e\u5230\u7b2c\u4e00\u4e2a\u5b57\u6bb5&#xff1a;<\/p>\n<p>alter table users add image_path varchar(100) comment &#039;\u7528\u6237\u5934\u50cf\u8def\u5f84&#039; first;<br \/>\nmysql&gt; desc user1;<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| Field      | Type         | Null | Key | Default | Extra |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| id         | int          | YES  |     | NULL    |       |<br \/>\n| name       | varchar(20)  | YES  |     | NULL    |       |<br \/>\n| password   | char(32)     | YES  |     | NULL    |       |<br \/>\n| birthday   | date         | YES  |     | NULL    |       |<br \/>\n| image_path | varchar(128) | YES  |     | NULL    |       |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<\/p>\n<p>\u63d2\u5165\u65b0\u5b57\u6bb5\u540e&#xff0c;\u5bf9\u539f\u6765\u8868\u4e2d\u7684\u6570\u636e\u6ca1\u6709\u5f71\u54cd&#xff1a;<\/p>\n<p>mysql&gt; select * from user1;<br \/>\n&#043;&#8212;&#8212;&#043;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#043;<br \/>\n| id   | name   | password | birthday   | image_path |<br \/>\n&#043;&#8212;&#8212;&#043;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#043;<br \/>\n|    1 | \u5f20\u4e09   | 12345    | 2005-10-15 | NULL       |<br \/>\n|    2 | \u674e\u56db   | 54321    | 2004-10-15 | NULL       |<br \/>\n&#043;&#8212;&#8212;&#043;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;-&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#043;<\/p>\n<h3 id=\"3.3%20%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5\">3.3 \u4fee\u6539\u5b57\u6bb5<\/h3>\n<ul>\n<li>\u4fee\u6539 name&#xff0c;\u5c06\u5176\u957f\u5ea6\u6539\u4e3a 60&#xff1a;<\/li>\n<\/ul>\n<p>alter table user1 modify name varchar(60);<br \/>\nmysql&gt; desc user1;<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| Field      | Type         | Null | Key | Default | Extra |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| id         | int          | YES  |     | NULL    |       |<br \/>\n| name       | varchar(60)  | YES  |     | NULL    |       |<br \/>\n| password   | char(32)     | YES  |     | NULL    |       |<br \/>\n| birthday   | date         | YES  |     | NULL    |       |<br \/>\n| image_path | varchar(128) | YES  |     | NULL    |       |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n5 rows in set (0.00 sec) <\/p>\n<h3 id=\"3.4%20%E5%88%A0%E9%99%A4%E5%AD%97%E6%AE%B5\">3.4 \u5220\u9664\u5b57\u6bb5<\/h3>\n<p>\u5220\u9664 password \u5b57\u6bb5&#xff1a;<\/p>\n<p>alter table user1 drop password;<br \/>\nmysql&gt; desc user1;<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| Field      | Type         | Null | Key | Default | Extra |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| id         | int          | YES  |     | NULL    |       |<br \/>\n| name       | varchar(60)  | YES  |     | NULL    |       |<br \/>\n| birthday   | date         | YES  |     | NULL    |       |<br \/>\n| image_path | varchar(128) | YES  |     | NULL    |       |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n4 rows in set (0.00 sec)<\/p>\n<h3 id=\"3.5%20%E4%BF%AE%E6%94%B9%E8%A1%A8%E5%90%8D\">3.5 \u4fee\u6539\u8868\u540d<\/h3>\n<ul>\n<li>\u4fee\u6539\u8868\u540d\u4e3a User1&#xff1a;<\/li>\n<\/ul>\n<p>alter table user1 rename to User1;<br \/>\nalter table user1 rename User1; <\/p>\n<ul>\n<li>to&#xff1a;\u53ef\u4ee5\u7701\u7565<\/li>\n<\/ul>\n<p>mysql&gt; show tables;<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n| Tables_in_users |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n| User1           |<br \/>\n| user2           |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n2 rows in set (0.00 sec) <\/p>\n<h3 id=\"3.6%20%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5%E5%90%8D%E5%AD%97\">3.6 \u4fee\u6539\u5b57\u6bb5\u540d\u5b57<\/h3>\n<ul>\n<li>\u5c06 name \u5b57\u6bb5\u4fee\u6539\u4e3a mz&#xff1a;<\/li>\n<\/ul>\n<p>alter table User1 change name mz varchar(20); <\/p>\n<p>\u6ce8\u610f&#xff1a;\u65b0\u5b57\u6bb5\u9700\u8981\u5b8c\u6574\u5b9a\u4e49<\/p>\n<p>mysql&gt; desc User1;<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| Field      | Type         | Null | Key | Default | Extra |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n| id         | int          | YES  |     | NULL    |       |<br \/>\n| mz         | varchar(20)  | YES  |     | NULL    |       |<br \/>\n| birthday   | date         | YES  |     | NULL    |       |<br \/>\n| image_path | varchar(128) | YES  |     | NULL    |       |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;&#043;&#8212;&#8211;&#043;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;-&#043;<br \/>\n4 rows in set (0.00 sec)<\/p>\n<h3 id=\"3.7%20%E5%88%A0%E9%99%A4%E8%A1%A8\">3.7 \u5220\u9664\u8868<\/h3>\n<p>DROP [TEMPORARY] TABLE [IF EXISTS] tbl_name [, tbl_name] &#8230;<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>drop table user2; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 1. \u521b\u5efa\u8868<br \/>\n2. \u67e5\u770b\u8868\u7ed3\u6784<br \/>\n3. \u4fee\u6539\u8868<br \/>\n3.1 \u63d2\u5165\u6570\u636e<br \/>\n3.2 \u6dfb\u52a0\u5b57\u6bb5<br \/>\n3.3 \u4fee\u6539\u5b57\u6bb5<br \/>\n3.4 \u5220\u9664\u5b57\u6bb5<br \/>\n3.5 \u4fee\u6539\u8868\u540d<br \/>\n3.6 \u4fee\u6539\u5b57\u6bb5\u540d\u5b57<br \/>\n3.7 \u5220\u9664\u8868 1. \u521b\u5efa\u8868<br \/>\nCREATE TABLE table_name (field1 datatype,field2 datatype,field3 datatype<br \/>\n) character set \u5b57\u7b26\u96c6 collate \u6821\u9a8c\u89c4\u5219 engine \u5b58\u50a8\u5f15\u64ce;<br \/>\nfield \u8868\u793a\u5217\u540ddat<\/p>\n","protected":false},"author":2,"featured_media":94137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,100],"topic":[],"class_list":["post-94138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mysql","tag-100"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \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\/94138.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 1. \u521b\u5efa\u8868 2. \u67e5\u770b\u8868\u7ed3\u6784 3. \u4fee\u6539\u8868 3.1 \u63d2\u5165\u6570\u636e 3.2 \u6dfb\u52a0\u5b57\u6bb5 3.3 \u4fee\u6539\u5b57\u6bb5 3.4 \u5220\u9664\u5b57\u6bb5 3.5 \u4fee\u6539\u8868\u540d 3.6 \u4fee\u6539\u5b57\u6bb5\u540d\u5b57 3.7 \u5220\u9664\u8868 1. \u521b\u5efa\u8868 CREATE TABLE table_name (field1 datatype,field2 datatype,field3 datatype ) character set \u5b57\u7b26\u96c6 collate \u6821\u9a8c\u89c4\u5219 engine \u5b58\u50a8\u5f15\u64ce; field \u8868\u793a\u5217\u540ddat\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94138.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-13T12:25:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813122529-6a7db7b934eb3.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94138.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94138.html\",\"name\":\"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-13T12:25:30+00:00\",\"dateModified\":\"2026-08-13T12:25:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94138.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94138.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94138.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539\"}]},{\"@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 \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \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\/94138.html","og_locale":"zh_CN","og_type":"article","og_title":"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 1. \u521b\u5efa\u8868 2. \u67e5\u770b\u8868\u7ed3\u6784 3. \u4fee\u6539\u8868 3.1 \u63d2\u5165\u6570\u636e 3.2 \u6dfb\u52a0\u5b57\u6bb5 3.3 \u4fee\u6539\u5b57\u6bb5 3.4 \u5220\u9664\u5b57\u6bb5 3.5 \u4fee\u6539\u8868\u540d 3.6 \u4fee\u6539\u5b57\u6bb5\u540d\u5b57 3.7 \u5220\u9664\u8868 1. \u521b\u5efa\u8868 CREATE TABLE table_name (field1 datatype,field2 datatype,field3 datatype ) character set \u5b57\u7b26\u96c6 collate \u6821\u9a8c\u89c4\u5219 engine \u5b58\u50a8\u5f15\u64ce; field \u8868\u793a\u5217\u540ddat","og_url":"https:\/\/www.wsisp.com\/helps\/94138.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-13T12:25:30+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813122529-6a7db7b934eb3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94138.html","url":"https:\/\/www.wsisp.com\/helps\/94138.html","name":"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-13T12:25:30+00:00","dateModified":"2026-08-13T12:25:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94138.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94138.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94138.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MySQL \u8868\u7684\u64cd\u4f5c\uff1a\u8868\u7684\u589e\u5220\u6539"}]},{"@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\/94138","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=94138"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/94137"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94138"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}