{"id":135523,"date":"2020-07-21T12:31:02","date_gmt":"2020-07-21T04:31:02","guid":{"rendered":"http:\/\/4563.org\/?p=135523"},"modified":"2020-07-21T12:31:02","modified_gmt":"2020-07-21T04:31:02","slug":"mysql-%e6%b7%bb%e5%8a%a0%e4%b8%80%e6%9d%a1%e6%95%b0%e6%8d%ae%ef%bc%8c%e9%9c%80%e8%a6%81%e5%88%a4%e6%96%ad%e6%95%b0%e6%8d%ae%e6%98%af%e5%90%a6%e9%87%8d%e5%a4%8d%e3%80%82%e7%94%a8%e7%bb%84%e5%90%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=135523","title":{"rendered":"mysql \u6dfb\u52a0\u4e00\u6761\u6570\u636e\uff0c\u9700\u8981\u5224\u65ad\u6570\u636e\u662f\u5426\u91cd\u590d\u3002\u7528\u7ec4\u5408\u7d22\u5f15\u597d\uff0c\u8fd8\u662f\u67e5\u8be2\u6570\u636e\u540e\u4ee3\u7801\u5224\u65ad\u6bd4\u8f83\u597d\uff0c\u8fd8\u662f\u8bf4\u6709\u5176\u4ed6\u65b9\u6cd5"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  mysql \u6dfb\u52a0\u4e00\u6761\u6570\u636e\uff0c\u9700\u8981\u5224\u65ad\u6570\u636e\u662f\u5426\u91cd\u590d\u3002\u7528\u7ec4\u5408\u7d22\u5f15\u597d\uff0c\u8fd8\u662f\u67e5\u8be2\u6570\u636e\u540e\u4ee3\u7801\u5224\u65ad\u6bd4\u8f83\u597d\uff0c\u8fd8\u662f\u8bf4\u6709\u5176\u4ed6\u65b9\u6cd5               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : duoyuanyz <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u611f\u89c9\u7528\u5f02\u5e38\u5904\u7406\u65b9\u4fbf\u4e9b\uff0c\u53ea\u7ba1\u63d2\u5165\u5c31\u884c\u4e86\u3002      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2478228\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qsbaq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u7136\u5f97\u8bbe\u7f6e\u552f\u4e00\u952e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478229\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qsbaq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bbe\u7f6e\u552f\u4e00\u7d22\u5f15,\u5982\u679c\u6570\u636e\u53ef\u4ee5\u8986\u76d6,\u5c31\u7528 sql \u91cc\u9762\u7684 replace into\uff0c\u5426\u5219\u5c31 insert into\uff0c\u770b\u7136\u540e\u6293\u62a5\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478230\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : playniuniu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5bf9\u5427\uff0c\u7528\u5f02\u5e38\u90a3\u5f97\u662f\u552f\u4e00\u7d22\u5f15\u554a\uff0c\u6570\u636e\u4e0d\u53ef\u80fd\u90fd\u505a\u7d22\u5f15\u5427\u3002<\/p>\n<p>\u518d\u8bf4\u4e86\u91cd\u590d\u5206\u5f88\u591a\u79cd\uff0c\u5355 KEY \u8fd8\u662f\u591a KEY \u91cd\u590d\u5462\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478231\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : takemeaway <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u903b\u8f91\u5220\u9664\u9700\u6c42\u7684\uff0c\u552f\u4e00\u952e\u4f1a\u7279\u522b\u5751\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478232\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zsdroid <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5224\u65ad\u662f\u5426\u91cd\u590d\uff0c\u7136\u540e\u7684\u4e1a\u52a1\u903b\u8f91\u662f\u5565\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478233\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 1018ji <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8054\u5408\u552f\u4e00\u7d22\u5f15\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478234\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rr41ns <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f2a\u5220\u9664\u7684\u5751\u57cb\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478235\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jugelizi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f97\u662f\u6570\u636e\u5e93\u552f\u4e00\u7d22\u5f15\u624d\u884c\u3002\u4ee3\u7801\u5355\u4e2a\u7ebf\u7a0b\u903b\u8f91\u5224\u65ad\u4e0d\u884c\u7684\uff0c\u591a\u7ebf\u7a0b\u548c\u5206\u5e03\u5f0f\u73af\u5883\u4e0b\u4e0d\u9002\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478236\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : raysmond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             unique \u7ea6\u675f\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478237\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : VictorJing94 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e1a\u52a1\u590d\u6742\u5ea6\uff0c\u7b80\u5355\u7684\u5c31\u4e3b\u952e \/\u552f\u4e00\uff0b\u6355\u83b7\u201c\u552f\u4e00\u6027\u51b2\u7a81\u201d\u5f02\u5e38\uff0c\u590d\u6742\u70b9\u7684\u5c31\u8981\u5148\u67e5\u51fa\u6765\u518d\u5224\u65ad\u3002\u4f46\u4f60\u95ee\u5f97\u662f\u7ec4\u5408\u7d22\u5f15\uff0c\u8bf4\u660e\u4e0d\u662f\u5355\u4e2a\u5b57\u6bb5\uff0c\u90a3\u4e1a\u52a1\u590d\u6742\u5ea6\u5c31\u4e0d\u4f1a\u7b80\u5355\uff0c\u5fc5\u987b\u9009\u540e\u8005\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478238\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6570\u636e\u91cd\u590d\u7684\u5b9a\u4e49\u662f\u5565\uff1f\u662f\u53ea\u8981 key \u91cd\u590d\u5c31\u7b97\u8fd8\u662f\u6574\u884c\u6570\u636e\u6240\u6709\u5b57\u6bb5\u90fd\u76f8\u7b49\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478239\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littlewing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             unique index<br \/>insert ignore<br \/>\u83b7\u53d6 insert id                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478240\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : realpg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u7279\u522b\u8981\u6c42\u6548\u7387\u7684\u8bdd\u8fd8\u662f\u67e5\u4e00\u4e0b\u5427\uff0c\u4e1a\u52a1\u4e0a\u7684\u4e8b\u522b\u57cb\u5751                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478241\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : FFFire <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u52a0\u5168\u5c40\u9501 \u7136\u540e\u67e5\u4e00\u904d\u63d2\u5165                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478242\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Yuicon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e92\u8054\u7f51\u6ca1\u6709\u7269\u7406\u5220\u9664                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478243\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Tokiomi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u4f7f\u7528\u903b\u8f91,\u552f\u4e00\u7d22\u5f15\u4e0d\u4f1a\u4f7f\u7528 change buffer, \u4f1a\u5f71\u54cd\u63d2\u5165\u6548\u7387                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478244\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangsilence <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9501                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2478245\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cs3230524 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/stackoverflow.com\/questions\/1361340\/how-to-insert-if-not-exists-in-mysql\/1361368                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>mysql \u6dfb\u52a0\u4e00\u6761\u6570\u636e\uff0c\u9700\u8981\u5224\u65ad&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\/135523"}],"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=135523"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135523\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135523"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}