{"id":472112,"date":"2021-05-03T14:09:29","date_gmt":"2021-05-03T06:09:29","guid":{"rendered":"http:\/\/4563.org\/?p=472112"},"modified":"2021-05-03T14:09:29","modified_gmt":"2021-05-03T06:09:29","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%aa-mysql-%e6%9d%a1%e4%bb%b6%e6%9b%b4%e6%96%b0%e8%af%ad%e5%8f%a5%e4%b8%80%e5%8f%a5%e5%ae%8c%e6%88%90","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=472112","title":{"rendered":"\u8bf7\u6559\u4e00\u4e2a Mysql \u6761\u4ef6\u66f4\u65b0\u8bed\u53e5,\u4e00\u53e5\u5b8c\u6210"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e00\u4e2a Mysql \u6761\u4ef6\u66f4\u65b0\u8bed\u53e5,\u4e00\u53e5\u5b8c\u6210               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : uti6770werty <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728\u540c\u4e00\u4e2a\u8868\u4e2d,\u5bf9\u503c\u7684\u8fdb\u884c\u5224\u65ad,\u6839\u636e\u5224\u65ad\u7ed3\u679c[\u662f\u5426]\u518d\u8fdb\u884c\u66f4\u65b0<\/p>\n<p>1 \u3001\u6709\u4e00\u4e2a\u540d\u53eb<code>mtt<\/code>\u7684\u8868<br \/> 2 \u3001mtt \u8868\u5185\u6709\u4e09\u4e2a\u6d89\u4e8b\u5b57\u6bb5\uff0c<code>AID<\/code>,<code>mttID<\/code>,<code>UpdateTime<\/code><br \/> 3 \u3001mttID=&#8217;3A2NN179&#8217;\u7684\u6761\u76ee,\u5982\u679c<code>AID<\/code>\u4e0d\u7b49\u4e8e&#8217;2719&#8242;,\u628a\u8fd9\u4e9b\u6761\u76ee\u7684<code>AID<\/code>\u66f4\u65b0\u4e3a&#8217;2719&#8242;,\u540c\u65f6\u66f4\u65b0 UpdateTime \u65f6\u95f4\u4e3a now(),<br \/> 4 \u3001\u5982\u679c<code>AID<\/code>\u5df2\u7ecf\u662f 2719,\u5219\u4e0d\u7528\u7406\u4f1a,\u4e5f\u4e0d\u7528\u66f4\u65b0 UpdateTime <\/p>\n<p>SELECT * FROM <code>mtt<\/code> WHERE <code>mttID<\/code>=&#8217;3A2NN179&#8242;;<\/p>\n<p>\u7a0b\u5e8f\u4e0a\u6765\u8bf4,<br \/> \u7528 SELECT \u5230\u5185\u5bb9,\u7a0b\u5e8f\u672c\u5730\u5224\u65ad,\u518d\u53bb\u505a\u4e24\u6b21 UPDATE,\u4e24\u4e09\u4e2a\u4ea4\u4e92\u7684\u662f\u80fd\u505a\u5230,\u63e1\u624b\u5ef6\u65f6\u7b49,\u8d39\u6548\u6bd4\u4e0d\u597d,\u770b\u770b\u6709\u65e0\u4e00\u53e5\u5b8c\u6210\u7684\u53ef\u80fd?<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5844598\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CEBBCAT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             UPDATE mtt SET AID=&#8217;2719&#8242;,UpdateTime=UNIX_TIMESTAMP() WHERE mttID=&#8217;3A2NN179&#8242; AND AID!=&#8217;2719&#8242;<\/p>\n<p>\u8fd9\u6837\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5844599\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : uti6770werty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CEBBCAT \u8d5e\u4e00\u4e2a,\u601d\u8def\u62d0\u4e86\u4e00\u4e2a\u5f2f\u5c31\u6ca1\u60f3\u5230,\u611f\u8c22!                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5844600\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jorneyr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             UPDATE question_knowledge_point qkp<br \/>JOIN (SELECT knowledge_point_id AS id, COUNT(id) AS count FROM question GROUP BY knowledge_point_id) AS t ON qkp.id=t.id<br \/>SET qkp.count=t.count                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5844601\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : devswork <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             update xxx where mttID=&#8217;3A2NN179&#8242; and AID != &#8216;2719&#8217; <br \/>\u4e0d\u5c31\u53ef\u4ee5\u5566\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e00\u4e2a Mysql \u6761\u4ef6\u66f4\u65b0\u8bed\u53e5&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\/472112"}],"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=472112"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/472112\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=472112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=472112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=472112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}