{"id":179990,"date":"2020-10-25T08:27:29","date_gmt":"2020-10-25T00:27:29","guid":{"rendered":"http:\/\/4563.org\/?p=179990"},"modified":"2020-10-25T08:27:29","modified_gmt":"2020-10-25T00:27:29","slug":"%e5%a4%a7%e5%ae%b6%e5%96%9c%e6%ac%a2%e7%94%a8%e7%ba%af-sql-%e8%bf%98%e6%98%af-orm-%e6%a1%86%e6%9e%b6%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=179990","title":{"rendered":"\u5927\u5bb6\u559c\u6b22\u7528\u7eaf sql \u8fd8\u662f orm \u6846\u67b6\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5927\u5bb6\u559c\u6b22\u7528\u7eaf sql \u8fd8\u662f orm \u6846\u67b6\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DelayNoMay <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u4e2a\u4eba\u6bd4\u8f83\u559c\u6b22\u7eaf sql\uff0c\u56e0\u4e3a\u6bd4\u8f83\u597d\u8c03\u8bd5\uff0c\u597d\u4f18\u5316\uff0c\u9002\u5e94\u6027\u5f3a\uff0c\u6362 orm \u6846\u67b6\uff0c\u6362\u8bed\u8a00\u540e\u4e0d\u7528\u91cd\u65b0\u5b66\u4e60\u3002\u6700\u8fd1\u6211 leader \u628a\u6211\u7684\u7eaf sql \u6539\u6210\u4e86 orm \u5f62\u5f0f\uff0c\u8bf4\u5b9e\u8bdd\u6709\u70b9\u4e0d\u723d<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3936213\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : emeab <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4eba\u751f\u82e6\u77ed \u6211\u7528 orm \u3002sql \u4e00\u957f\u770b\u8d77\u6765\u70e6\u6b7b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936214\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zoharSoul <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sql + mapping,<br \/>\u624b\u52a8\u6620\u5c04\u592a\u8d39\u52b2\u4e86. \u8fd8\u662f\u81ea\u52a8\u7684..<br \/>orm \u5199 sql \u8981\u5b66\u4e0d\u5c11\u4e1c\u897f, \u4e0d\u5982\u76f4\u63a5 sql \u95e8\u69db\u4f4e\u4e00\u70b9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936215\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blless <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sql \u6ce8\u5165\u4e86\u89e3\u4e00\u4e0b\uff0c\u7528\u6846\u67b6\u4e0d\u4e00\u5b9a\u662f\u4e3a\u4e86\u7701\u4e8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936216\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tairan2006 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66f4\u559c\u6b22 mybatis-plus \u8fd9\u79cd\u2026\u590d\u6742\u7684\u76f4\u63a5\u5199 sql\uff0c\u7b80\u5355\u7684\u4ee3\u7801\u91cc\u641e\u5b9a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936217\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yyss8 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u7528 orm \u4f46\u81f3\u5c11\u7528 query builder \u7c7b\u7684\u6846\u67b6 \u81f3\u5c11\u4e0d\u7528\u62c5\u5fc3 sql \u6ce8\u5165\u4e4b\u7c7b\u7684\u95ee\u9898<br \/>\u6709\u4e9b\u8bed\u53e5\u590d\u6742\u7684 \u5927\u90e8\u5206 query builder \u4e5f\u652f\u6301\u7528 raw sql                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936218\" 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>                                                             @blless \u5728\u7528 go\uff0cSQL \u90fd\u662f\u5148 prepare \u518d exec \u7684\uff0c\u8fd9\u6837\u4e0d\u5c31\u53ef\u4ee5\u9632\u6b62\u6ce8\u5165\u4e86\u5417\uff1f\u671b\u8d50\u6559                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936219\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : blless <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CEBBCAT \u4f60\u53ef\u4ee5\u8ba4\u4e3a orm \u591a\u4e86\u4e00\u5c42\u53c2\u6570\u9a8c\u8bc1\uff0c\u81f3\u5c11\u8981\u548c\u53c2\u4e0e\u67e5\u8be2\u7684\u7ed3\u6784\u4f53\u7ed1\u5b9a\u3002\u987a\u4fbf\u4e5f sql \u7ed3\u679c\u89e3\u7801\u6210\u5185\u5b58\u5bf9\u8c61\uff0c\u7701\u4e8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936220\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7eaf SQL \u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u53ea\u8981\u4e0d\u62fc\u53c2\u6570\u5c31\u6ca1\u4e8b\u3002<br \/>\u4f46\u662f ORM \u6bd4\u8f83\u65b9\u4fbf\u81ea\u52a8\u4f18\u5316\uff0c\u6bd4\u5982\u6846\u67b6\u91cc\u53ef\u4ee5\u6839\u636e\u53c2\u6570\u505a\u7f13\u5b58\uff0c\u6216\u8005\u8868\u8fde\u63a5\u7ed9\u4f60\u667a\u80fd\u62c6\u5206\u6210\u591a\u6761\u67e5\u8be2\u7b49\u3002<br \/>\u5f53\u7136\u5982\u679c\u4f60\u4eec\u516c\u53f8\u63d0\u5021\u52a0\u73ed\uff0c\u90a3\u81ea\u5df1\u82b1\u65f6\u95f4\u624b\u52a8\u4f18\u5316\u4e5f\u4e0d\u662f\u4e0d\u884c\u2026\u2026<br \/>\u6211\u53cd\u6b63\u662f\u61d2\uff0c\u80fd\u8ba9\u4ee3\u7801\u505a\u7684\u4e8b\u60c5\u7edd\u4e0d\u6d6a\u8d39\u81ea\u5df1\u7684\u65f6\u95f4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936221\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : labulaka521 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 sql \u9700\u8981\u5341\u884c\u4ee3\u7801\uff0c\u800c\u7528\u4e86 orm \u6846\u67b6\u53ea\u9700\u8981\u4e09\u56db\u884c\u3002<br \/> \u6211\u6b63\u5728\u628a\u4e00\u4e2a\u9879\u76ee\u7684\u7684\u6570\u636e\u5e93\u67e5\u8be2\u7531\u7eaf sql \u6539\u6210 orm \u6765\u67e5\u8be2\uff0c\u771f\u7684\u4e0d\u9700\u8981\u5199\u5f88\u591a\u4ee3\u7801\uff0c\u5c24\u5176\u5728\u67e5\u8be2\u5f88\u591a\u6b21\u65f6\uff0c\u771f\u7684\u5f88\u65b9\u4fbf \u524d\u9762\u6709\u4eba\u8bf4\u6362\u4e86\u8bed\u8a00\u540e\u8981\u91cd\u65b0\u5199\uff0c\u6bcf\u4e2a\u8bed\u8a00\u7684\u4f18\u79c0 orm \u6846\u67b6\u5c31\u90a3\u4e2a\u51e0\u4e2a\uff0c\u5b66\u4e60\u65b0\u8bed\u8a00\u7684\u65f6\u5019\u987a\u4fbf\u770b\u770b\uff0c\u4e86\u89e3\u4e00\u4e0b \u5c31\u597d\u4e86\u5440\uff0c\u4eba\u751f\u82e6\u77ed\uff0c\u6211\u7528 orm \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936222\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nutting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             orm \u6709\u4e2a\u95ee\u9898\u4f60\u4eec\u600e\u4e48\u641e\u7684\uff0c\u5c31\u662f\u63a7\u5236\u5668\u63a5\u53d7\u5165\u53c2\uff0c\u5f80\u5f80\u5c31\u76f4\u63a5\u7528\u6570\u636e entity \u7c7b\u4e86\uff0c\u6211\u89c9\u5f97\u8fd9\u4e2a\u505a\u6cd5\u5f88\u5371\u9669\u554a\uff0c\u88ab\u4eba\u77e5\u9053\u53ef\u4ee5\u7be1\u6539\u6570\u636e\uff0c\u52a0\u70b9\u9650\u5236\u6761\u4ef6\u4e5f\u5f88\u7e41\u7410\u554a\u3002\u4f46\u662f\u5982\u679c\u518d\u5b9a\u4e49\u4e00\u4e2a vo \u7c7b\u5165\u53c2\uff0cset \u5230 entity \u5b58\u50a8 \u662f\u4e0d\u662f\u6709\u70b9\u7d2f\u8d58\uff0c\u597d\u50cf\u53ea\u80fd\u8fd9\u6837\u505a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3936223\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nutting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53d1\u73b0\u9879\u76ee\u91cc\u5f88\u591a\u4eba\u5077\u61d2\u5c31\u524d\u8005\u65b9\u6848\u4e86\uff0c\u53ef\u80fd\u9700\u6c42\u5f80\u5f80\u5c31\u662f CRUD \u8fd9\u6837\u65b9\u4fbf\uff0c\u53c8\u662f\u4e0d\u9762\u5411\u516c\u4f17\u7684\u7cfb\u7edf\u603b\u89c9\u5f97\u5b89\u5168\u6027\u6b21\u4e4b\uff0c\u5f88\u5371\u9669\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u559c\u6b22\u7528\u7eaf sql \u8fd8\u662f orm&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\/179990"}],"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=179990"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/179990\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179990"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}