{"id":973,"date":"2021-06-08T15:47:42","date_gmt":"2021-06-08T07:47:42","guid":{"rendered":"http:\/\/www.haoht.com.cn\/?p=973"},"modified":"2021-06-29T11:58:05","modified_gmt":"2021-06-29T03:58:05","slug":"%e5%90%88%e5%90%8c%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f%e7%94%a8%e6%88%b7%e7%99%bb%e5%bd%95%e5%90%8d%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"http:\/\/www.haoht.com.cn\/973\/","title":{"rendered":"\u5408\u540c\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u767b\u5f55\u540d\u4fee\u6539"},"content":{"rendered":"

\u672csql \u811a\u672c\uff0c\u76ee\u7684\u662f\uff0c\u5c06\u7ec4\u7ec7\u673a\u6784\u5185\u7684\u4eba\u5458\u767b\u5f55\u540d\u4ece a \u6539\u6210 a1 \uff0c\u4eba\u5458\u6570\u636e\u5e93\u662f OIOrg \uff08\u6839\u636e\u81ea\u5df1\u8bbe\u7f6e\u60c5\u51b5\u843d\u5b9e\uff09
\n\u5f88\u591a \u767b\u5f55\u540d\u662f\u4e2d\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5c06\u4e2d\u6587\u767b\u5f55\u540d \u79fb\u5165\u5230\u522b\u540d\uff0c\u4e3a\u8fd9\u4e2a\u8d26\u53f7 \u5efa\u7acb\u4e00\u4e2a \u82f1\u6587\u767b\u5f55\u540d
\n1\uff09\u8bf7\u6838\u5bf9\uff0c\u4eba\u5458\u7ba1\u7406\u670d\u52a1\u6240\u7528\u5230\u7684\u6570\u636e\u5e93\u662f\u5426\u662f OIOrg \uff1b
\n2\uff09\u8fd0\u4f5c\u8fd9\u4e2a\u811a\u672c\u7684\u65f6\u5019\uff0c\u5fc5\u987b\u662f\u5728OIOrg\u8fd9\u4e2a\u6570\u636e\u5e93\u5185\u8fdb\u884c\u811a\u672c\u8fd0\u884c\uff1b
\n3\uff09\u5728OIOrg\u5e93\u4e0b\uff0c\u5148\u521b\u5efasheet1\u8868\uff0c\u5305\u542b newlogin oldlogin 2\u4e2a\u5b57\u6bb5\uff1b\uff08\u82e5\u6709excel\u4e5f\u53ef\u4ee5\u5bfc\u5165\uff09
\n4\uff09\u8fd0\u884c\u6b64\u811a\u672c\u524d\uff0c\u5148\u5c06 OIOrg\u5e93\u8fdb\u884c\u5907\u4efd\uff1b
\n5) \u8fd9\u4e2a\u811a\u672c\u8fd0\u884c\u540e \uff0c\u91cd\u542f\u6240\u6709\u670d\u52a1\uff0c\u624d\u80fd\u751f\u6548<\/p>\n

— \u7ba1\u7406\u5458\u8868 — OI_Org_T004.S_C1<\/p>\n

UPDATE OI_ORG_T004<\/p>\n

SET S_C1 = A.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T004.S_C1
\nGO<\/p>\n

— \u5355\u4f4d\u8d1f\u8d23\u4eba\u8868 — OI_Org_T006.S_C4<\/p>\n

UPDATE OI_Org_T006<\/p>\n

SET S_C4 = A.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T006.S_C4
\nGO<\/p>\n

— \u4eba\u5458\u7ec4\u6210\u8868 — OI_Org_T007.S_C3<\/p>\n

UPDATE OI_Org_T007<\/p>\n

SET S_C3 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T007.S_C3
\nGO<\/p>\n

— \u4eba\u5458\u767b\u8bb0\u4fe1\u606f\u8868 — OI_Org_T008.S_C1<\/p>\n

UPDATE OI_Org_T008<\/p>\n

SET S_C1 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T008.S_C1
\nGO<\/p>\n

— \u4eba\u5458\u6269\u5c55\u6807\u7b7e\u4fe1\u606f\u8868 — OI_Org_T009.S_C1<\/p>\n

UPDATE OI_Org_T009<\/p>\n

SET S_C1 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T009.S_C1
\nGO<\/p>\n

— \u89d2\u8272\u4eba\u5458\u8868 — OI_Org_T011.S_C2<\/p>\n

UPDATE OI_Org_T011<\/p>\n

SET S_C2 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T011.S_C2
\nGO<\/p>\n

— \u89c6\u56fe\u4eba\u5458\u8868 — OI_Org_T013.S_C3<\/p>\n

UPDATE OI_Org_T013<\/p>\n

SET S_C3 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T013.S_C3
\nGO<\/p>\n

— \u89c6\u56fe\u53ef\u8bbf\u95ee\u63a7\u5236\u8868 — OI_Org_T015.S_C3 (N_C2 = 0)<\/p>\n

UPDATE OI_Org_T015<\/p>\n

SET S_C3 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T015.S_C3<\/p>\n

AND OI_Org_T015.n_C2 = 0
\nGO<\/p>\n

— \u5e94\u7528\u53ef\u4f7f\u7528\u4eba\u5458\u8868 — OI_Org_T017.S_C3 (N_C2 = 0)<\/p>\n

UPDATE OI_Org_T017<\/p>\n

SET S_C3 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T017.S_C3<\/p>\n

AND OI_Org_T017.n_C2 = 0
\nGO<\/p>\n

— \u9886\u5bfc\u5173\u7cfb\u8868 \uff08\u53ef\u80fd\u5f88\u591a\u7528\u6237\u90fd\u6ca1\u6709\u7528\u5230\uff09– OI_Org_T025.S_C1<\/p>\n

UPDATE OI_Org_T025<\/p>\n

SET S_C1 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T025.S_C1
\nGO<\/p>\n

–\u9886\u5bfc\u5173\u7cfb\u8868 — OI_Org_T025.S_C2 (N_C5 = 0)<\/p>\n

UPDATE OI_Org_T025<\/p>\n

SET S_C2 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T025.S_C2 AND OI_Org_T025.n_C5 = 0
\nGO<\/p>\n

— \u5e38\u7528\u8054\u7cfb\u4eba\u5206\u7ec4 OI_ORG_CONTACT_GROUP<\/p>\n

UPDATE OI_ORG_CONTACT_GROUP<\/p>\n

SET S_OWNER = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_CONTACT_GROUP.S_OWNER
\nGO<\/p>\n

— \u5e38\u7528\u8054\u7cfb\u4eba OI_ORG_CONTACT<\/p>\n

UPDATE OI_ORG_CONTACT<\/p>\n

SET S_OWNER = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_CONTACT.S_OWNER
\nGO<\/p>\n

UPDATE OI_ORG_CONTACT<\/p>\n

SET S_USER_LOGIN = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_CONTACT.S_USER_LOGIN
\nGO<\/p>\n

\/*
\n— \u7528\u6237\u5173\u6ce8\u8868 \uff08\u8fd9\u4e2a\u5df2\u7ecf\u88ab\u6ce8\u91ca\u6389\u4e86\uff0c\u8fd9\u4e2a\u8868\u73b0\u5728\u8fd8\u6ca1\u6709\u7528\u5230\uff09– OI_Org_T026.S_C1<\/p>\n

UPDATE OI_Org_T026<\/p>\n

SET S_C1 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T026.S_C1
\nGO<\/p>\n

— OI_Org_T026.S_C2<\/p>\n

UPDATE OI_Org_T026<\/p>\n

SET S_C2 = a.newlogin<\/p>\n

FROM sheet1 a WHERE a.oldlogin = OI_ORG_T026.S_C2
\nGO<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672csql \u811a\u672c\uff0c\u76ee\u7684\u662f\uff0c\u5c06\u7ec4\u7ec7\u673a\u6784\u5185\u7684\u4eba\u5458\u767b\u5f55\u540d\u4ece a \u6539\u6210 a1 \uff0c\u4eba\u5458\u6570\u636e\u5e93\u662f OIOrg \uff08\u6839\u636e\u81ea\u5df1\u8bbe\u7f6e […]<\/p>\n","protected":false},"author":1,"featured_media":966,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[15],"class_list":["post-973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pcenter","category-shishi","tag-sql"],"_links":{"self":[{"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/comments?post=973"}],"version-history":[{"count":1,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":974,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/posts\/973\/revisions\/974"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/media\/966"}],"wp:attachment":[{"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/media?parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/categories?post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.haoht.com.cn\/wp-json\/wp\/v2\/tags?post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}