{"id":1904,"date":"2011-08-24T10:31:16","date_gmt":"2011-08-24T02:31:16","guid":{"rendered":"http:\/\/jason695.why3s.tw\/wordpress\/?p=1904"},"modified":"2011-08-24T10:31:39","modified_gmt":"2011-08-24T02:31:39","slug":"%e8%bd%89%e8%b2%bct-sql-common-table-expression-cte-%e6%95%99%e5%ad%b8%e9%87%8d%e9%bb%9e%e7%ad%86%e8%a8%98","status":"publish","type":"post","link":"https:\/\/jason695.why3s.tw\/wordpress\/2011\/08\/24\/%e8%bd%89%e8%b2%bct-sql-common-table-expression-cte-%e6%95%99%e5%ad%b8%e9%87%8d%e9%bb%9e%e7%ad%86%e8%a8%98\/","title":{"rendered":"[\u8f49\u8cbc]T-SQL &#8212; Common Table Expression (CTE) \u6559\u5b78\u91cd\u9ede\u7b46\u8a18"},"content":{"rendered":"<p><a href=\"http:\/\/kkbruce.blogspot.com\/2011\/01\/t-sql-common-table-expression-cte.html\">http:\/\/kkbruce.blogspot.com\/2011\/01\/t-sql-common-table-expression-cte.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u91cd\u9ede\u7b46\u8a18\uff1a<\/p>\n<ul>\n<li>\u53ef\u4ee5\u628aCTE\u7576\u6210&#8221;Temp View&#8221;<\/li>\n<li>\u5982\u679c\u5728Store Procedure\u4f7f\u7528CTE\uff0c\u6703\u9020\u6210\u6bcf\u6b21\u57f7\u884c\u90fd\u6703re-compiler\uff0c\u6548\u80fd\u4f4e\u843d<\/li>\n<li>\u8cc7\u6599\u96c6\u672a\u4ee5Table\u5b58\u653e\u65bcDatabase\u6642\uff0c\u9069\u5408\u7528CTE<\/li>\n<li>View\u901a\u5e38\u7528\u4f86\u5206\u89e3\u5927\u578b\u67e5\u8a62\uff0c\u5982\u679c\u53ea\u7528\u4e00\u6b21\uff0c\u90a3View\u4e0d\u662f\u597d\u8fa6\u6cd5<\/li>\n<li>\u5b50\u67e5\u8a62\u53ea\u80fd\u5f9e\u6240\u5728\u7684&#8221;\u9673\u8ff0\u5f0f&#8221;\u5b58\u53d6\uff0c\u5982\u679c\u6709\u591a\u500b\u76f8\u540c\u7684\u5b50\u67e5\u8a62\uff0c\u5fc5\u9808\u542b\u91cd\u8986\u7a0b\u5f0f\u78bc\uff0c\u96e3\u95b1\u8b80\u53ca\u7dad\u8b77<\/li>\n<li>CTE\u80fd\u5728\u540c\u6279\u6b21\u4e0b\uff0c\u91cd\u8986\u4f7f\u7528(\u50cfView\u4e00\u6a23)<\/li>\n<li>CTE\u53ea\u80fd\u7528\u65bc\u5176\u5f8c\u7b2c\u4e00\u500b\u9673\u8ff0\u5f0f(Select, Insert, Delete, Update)\uff0c\u6b64\u9673\u8ff0\u5f0f\u53ef\u591a\u6b21\u53d6\u7528CTE<\/li>\n<li>CTE\u5f8c\u9762\u53ef\u63a5\u53e6\u4e00\u500bCTE\uff0c\u4f7f\u7528\u9017\u865f(,)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/kkbruce.blogspot.com\/2011\/01\/t-sql-common-table- &hellip; <a href=\"https:\/\/jason695.why3s.tw\/wordpress\/2011\/08\/24\/%e8%bd%89%e8%b2%bct-sql-common-table-expression-cte-%e6%95%99%e5%ad%b8%e9%87%8d%e9%bb%9e%e7%ad%86%e8%a8%98\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">[\u8f49\u8cbc]T-SQL &#8212; Common Table Expression (CTE) \u6559\u5b78\u91cd\u9ede\u7b46\u8a18<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[47],"tags":[],"class_list":["post-1904","post","type-post","status-publish","format-standard","hentry","category-sql-server","no-featured-image"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=1904"}],"version-history":[{"count":0,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/posts\/1904\/revisions"}],"wp:attachment":[{"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jason695.why3s.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}