{"id":225443,"date":"2020-12-04T10:33:55","date_gmt":"2020-12-04T02:33:55","guid":{"rendered":"http:\/\/4563.org\/?p=225443"},"modified":"2020-12-04T10:33:55","modified_gmt":"2020-12-04T02:33:55","slug":"mysql-%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%bf%85%e9%a1%bb%e6%98%af%e4%b8%bb%e9%94%ae%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=225443","title":{"rendered":"mysql \u8bbe\u7f6e\u81ea\u589e\u5fc5\u987b\u662f\u4e3b\u952e\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  mysql \u8bbe\u7f6e\u81ea\u589e\u5fc5\u987b\u662f\u4e3b\u952e\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littlepython <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u65e9\u4e0a\u5199\u4e86\u4e2a\u8bed\u53e5 id \u81ea\u589e\u4f46\u4e0d\u662f\u4e3b\u952e\u4e00\u76f4\u62a5\u9519 \u8bed\u53e5\uff1acreate table <code>student<\/code>(<code>id<\/code> INT AUTO_INCREMENT, <code>name<\/code> VARCHAR(200) NOT NULL) ENGINE=INNODB CHARSET=<code>utf8<\/code>; \u62a5\u9519\u662f\uff1a1075 &#8211; Incorrect table definition; there can be only one auto column and it must be defined as a key<\/p>\n<p>mysql \u7248\u672c\u662f 8.0.20-0ubuntu0.20.04.1<\/p>\n<p>\u7f51\u4e0a\u67e5\u8be2\u6709\u7684\u8bf4\u53ef\u4ee5 \u6709\u7684\u4e0d\u53ef\u4ee5\uff0c\u6709\u70b9\u8ff7<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4558396\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hbolive <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9519\u8bef\u63d0\u793a\u5fc5\u987b\u662f key\uff0c\u4e0d\u662f PRIMARY KEY \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558397\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Xia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ec0\u4e48\u573a\u666f\u4f1a\u7528\u5230\u975e\u4e3b\u952e\u8981\u81ea\u589e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558398\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : littlepython <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Xia \u53ea\u662f\u81ea\u5df1\u968f\u4fbf\u5199\u7684 \u53d1\u73b0\u4e86\u8fd9\u4e2a\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558399\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : littlepython <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hbolive \u989d\uff0c\u8981\u6709 key \u624d\u80fd\u81ea\u589e\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558400\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Renzheng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/img.ijio.net\/2020\/12\/12\/037dbc98313ed.png<\/p>\n<p>https:\/\/www.cnblogs.com\/frankM\/p\/4399424.html                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558401\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dorothyREN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             pg \u5c31\u9999\u4e86\uff0c\u5b9a\u4e49\u4e2a\u5e8f\u5217\uff0c\u60f3\u5728\u54ea\u7528\u5c31\u5728\u54ea\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4558402\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neoblackcap <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6839\u636e\u4ee5\u524d\u4e66\u4e0a\u7684\u8bf4\u6cd5\uff0cInnoDB \u91c7\u53d6\u5b58\u50a8\u4e3a B \u6811\uff0c\u90a3\u4e48\u6700\u597d\u5c31\u662f\u7528\u6574\u578b\u7684\u4f5c\u4e3a\u4e3b\u952e\uff0c\u81ea\u4e0d\u81ea\u589e\u6ca1\u6240\u8c13\u3002<br \/>\u7136\u540e\u54ea\u6015\u4e3b\u952e\u662f\u6574\u578b\uff0c\u4f60\u5b8c\u5168\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u903b\u8f91\u4e3b\u952e\uff0c\u5e76\u4f7f\u7528\u5b57\u7b26\u4e32\u4f5c\u4e3a\u8be5\u680f\u7684\u6570\u636e\u7c7b\u578b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>mysql \u8bbe\u7f6e\u81ea\u589e\u5fc5\u987b\u662f\u4e3b\u952e\u5417\uff1f&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225443"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225443"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225443\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225443"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}