{"id":231912,"date":"2020-12-28T09:36:45","date_gmt":"2020-12-28T01:36:45","guid":{"rendered":"http:\/\/4563.org\/?p=231912"},"modified":"2020-12-28T09:36:45","modified_gmt":"2020-12-28T01:36:45","slug":"php-pdo-lastinsertid-%e6%9c%89%e4%bb%80%e4%b9%88%e8%a6%81%e6%b1%82%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=231912","title":{"rendered":"PHP PDO lastinsertId \u6709\u4ec0\u4e48\u8981\u6c42\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  PHP PDO lastinsertId \u6709\u4ec0\u4e48\u8981\u6c42\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u76ee\u524d\u662f(MySQL)bigint \u7684\u968f\u673a id\uff0cinsert \u6210\u529f\u8fd4\u56de 0\uff0c\u4e4b\u524d\u7528 int \u81ea\u589e id \u6b63\u5e38\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4604032\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zarte <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u767e\u5ea6 MySQL lastinsertId                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604033\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zarte \u522b\u50bb\u4e86\uff0c\u6211\u80af\u5b9a\u662f\u767e\u5ea6\u8fc7\u624d\u6765\u63d0\u95ee\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604034\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5df2\u767e\u5ea6\uff0c\u5df2 Bing \u3001Yandex\uff0c\u8dea\u6c42\u5927\u4f6c\u6307\u6559\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604035\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @youla <\/p>\n<p>https:\/\/github.com\/php\/php-src\/blob\/master\/ext\/pdo_mysql\/mysql_driver.c#L289                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604036\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dzdh \u8c22\u8c22\uff0c\u53ef\u60dc\u4ec0\u4e48\u4e5f\u6728\u6709\u770b\u61c2~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604037\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dzdh \u662f\u957f\u5ea6\u539f\u56e0\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604038\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u8fd4\u56de\u81ea\u589e\u7684\u3002\u5982\u679c\u4f60\u4e0d\u662f\u81ea\u589e\u7684\uff0c\u90a3\u8fd9\u4e2a\u503c\u4e0d\u7ba1\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4604039\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dzdh \u5662\uff0c\u8c22\u8c22\uff0c\u6709\u70b9\u5c0f\u624e\u5fc3\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>PHP PDO lastinser&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\/231912"}],"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=231912"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/231912\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231912"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}