{"id":392,"date":"2017-09-08T14:28:37","date_gmt":"2017-09-08T06:28:37","guid":{"rendered":"http:\/\/luchanglong.com.cn\/?p=392"},"modified":"2017-09-08T14:28:37","modified_gmt":"2017-09-08T06:28:37","slug":"mysql%e4%bd%bf%e7%94%a8%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b%e9%87%8d%e5%a4%8d%e6%89%b9%e9%87%8f-%e6%8f%92%e5%85%a5%e6%b5%8b%e8%af%95%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/blog.la998.com\/?p=392","title":{"rendered":"mysql\u4f7f\u7528\u5b58\u50a8\u8fc7\u7a0b\u91cd\u590d\/\u6279\u91cf \u63d2\u5165\u6d4b\u8bd5\u6570\u636e"},"content":{"rendered":"<pre class=\"lang:mysql decode:true  \">#\u521b\u5efa\u751f\u6210\u6d4b\u8bd5\u6570\u636e\u7684\u5b58\u50a8\u8fc7\u7a0b\r\nDROP PROCEDURE IF EXISTS test;\r\nCREATE PROCEDURE test() \r\nBEGIN \r\nDECLARE i INT DEFAULT 0; \r\nSET autocommit = 0; \r\nWHILE i&lt;100000 DO \r\n\r\nINSERT INTO `test`.`user` (`uid`, `task_id`, `publisher_id`, `expired_at`, `update_at`) \r\nVALUES ( 450+i, '125', '1', '2','2017-09-08 14:42:23', '2017-09-08 13:42:30');\r\n\r\nSET i = i+1; \r\nIF i%1000 = 0 THEN \r\nCOMMIT; \r\nEND IF; \r\nEND WHILE; \r\nEND;\r\n\r\n#\u6267\u884c\u5b58\u50a8\u8fc7\u7a0b\u751f\u6210\u6d4b\u8bd5\u6570\u636e\r\nCALL test();<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#\u521b\u5efa\u751f\u6210\u6d4b\u8bd5\u6570\u636e\u7684\u5b58\u50a8\u8fc7\u7a0b DROP PROCEDURE IF EXISTS test; CREATE PR &hellip; <a href=\"https:\/\/blog.la998.com\/?p=392\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">mysql\u4f7f\u7528\u5b58\u50a8\u8fc7\u7a0b\u91cd\u590d\/\u6279\u91cf \u63d2\u5165\u6d4b\u8bd5\u6570\u636e<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":1,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}