{"id":727,"date":"2011-04-12T10:24:32","date_gmt":"2011-04-12T02:24:32","guid":{"rendered":""},"modified":"2014-03-11T22:39:37","modified_gmt":"2014-03-11T14:39:37","slug":"sql%e8%af%ad%e5%8f%a5%e5%ae%9e%e7%8e%b0sql2000%e5%8f%8aaccess%e5%a4%8d%e5%88%b6%e5%88%b0%e6%96%b0%e7%9a%84%e8%a1%a8","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/04\/12\/727.htm","title":{"rendered":"SQL\u8bed\u53e5\u5b9e\u73b0SQL2000\u53caACCESS\u590d\u5236\u5230\u65b0\u7684\u8868"},"content":{"rendered":"<div id=\"blogDetailDiv\" style=\"font-size: 14px\">\n<p>SQL\u8bed\u53e5\u5b9e\u73b0\uff0cSQL Server 2000 \u53caACCESS\u590d\u5236\u65e7\u8868OldTable\u7684\u7ed3\u6784\uff0c\u6216\u7ed3\u6784\u53ca\u5185\u5bb9\u5230\u65b0\u7684\u8868NewTable<\/p>\n<p>\u4e24\u4e2a\u90fd\u8bd5\u8fc7\u4e86\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u5728\u8fd9\u4e24\u4e2a\u6570\u636e\u5e93\u4e2d\uff08SQL Server 2000 \u53caACCESS\uff09\u90fd\u662f\u53ef\u4ee5\u901a\u8fc7\u7684\u3002<\/p>\n<pre style=\"color: #ffffff; background-color: green\">\r\n--\u590d\u5236\u8868\u7ed3\u6784\u4e3a\u65b0\u7684\u8868<br \/>\r\n\r\nselect * <span style=\"color: #ffff00\">into NewTable<\/span>\r\n\r\n from OldTable where 1=2<br \/>\r\n\r\n<br \/>\r\n\r\n--\u590d\u5236\u8868\u7ed3\u6784\u53ca\u5185\u5bb9\u5230\u65b0\u7684\u8868<br \/>\r\n\r\nselect * <span style=\"color: #ffff00\">into newtable<\/span>\r\n\r\n from oldtable<\/pre>\n<p>\u5982\u679c\u60a8\u53ea\u9700\u8981\u65e7\u8868\u7684\u6216\u4ee5\u524d\u8868\u7684\u67d0\u4e00\u4e9b\u5b57\u6bb5\uff0c\u6216\u6c47\u603b\u540e\u7684\u5185\u5bb9\u5408\u6210\u4e00\u4e2a\u5b57\u6bb5\u7684\u8bdd\uff0c\u53ef\u4ee5\u8fd9\u6837<\/p>\n<pre style=\"color: #ffffff; background-color: green\">\r\n--\u590d\u5236\u8868\u7ed3\u6784\u5185\u7684\u67d0\u4e9b\u5b57\u6bb5\u4e3a\u65b0\u7684\u8868<br \/>\r\n\r\nselect title,type,price,notes ok <span style=\"color: #ffff00\">into NewTable2<\/span>\r\n\r\n from titles where 1=2<br \/>\r\n\r\n<br \/>\r\n\r\n--\u590d\u5236\u8868\u7ed3\u6784\u53ca\u5185\u5bb9\u5230\u65b0\u7684\u8868\uff0c\u53ef\u4ee5\u9009\u62e9\u5b57\u6bb5<br \/>\r\n\r\nselect title,type,price,pub_id-price ok <span style=\"color: #ffff00\">into NewTable2<\/span>\r\n\r\n from titles<\/pre>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u8fd9\u6837,\u5148\u590d\u5236\u8868\u7ed3\u6784\uff08\u53ef\u4ee5\u9009\u4e00\u4e9b\u5b57\u6bb5\u4e3a\u65b0\u7684\u8868\uff09\uff0c\u518d\u63d2\u5165\u5185\u5bb9<\/p>\n<pre style=\"color: #ffffff; background-color: green\">\r\n--\u590d\u5236\u8868\u7ed3\u6784\u5185\u7684\u67d0\u4e9b\u5b57\u6bb5\u4e3a\u65b0\u7684\u8868<br \/>\r\n\r\nselect title y1,type y2,price y3 <span style=\"color: #ffff00\">into yongfa365<\/span>\r\n\r\n from titles where 1=2<br \/>\r\n\r\n<br \/>\r\n\r\n--\u5411\u65b0\u7684\u8868\u91cc\u6dfb\u52a0\u6570\u636e<br \/>\r\n\r\ninsert into yongfa365 (y1,y2,y3) select title,type,price from titles<\/pre>\n<p>\u5176\u5b9e\uff0c\u901a\u8fc7\u4ee5\u4e0a\u7684\u4f8b\u5b50\u5927\u5bb6\u53ef\u4ee5\u770b\u5230\uff0c\u65e0\u8bba\u662f\u590d\u5236\u8868\u7ed3\u6784\u8fd8\u662f\u5185\u5bb9\uff0c\u8fd8\u662f\u6c47\u603b\u7684\u7ed3\u679c\u90fd\u53ef\u4ee5\u5230\u4e00\u4e2a\u65b0\u7684\u8868\u91cc\uff0c\u4e3a\u4ec0\u4e48\u5462\uff0c\u8fd9\u65f6\u6211\u60f3\u8d77\u4e86\uff0c\u53ef\u4ee5\u628a (select * from table)\u5f53\u6210\u4e00\u4e2a\u8868\uff0c\u90a3\u8fd9\u4e2a\u95ee\u9898\u5c31\u6709\u7b54\u6848\u4e86\uff1a\u65e2\u7136\u53ef\u4ee5\u628a\u9009\u62e9\u7ed3\u679c\u5f53\u6210\u4e00\u4e2a\u8868\uff0c\u90a3\u8fd9\u4e2a\u8868\u5c31\u53ef\u4ee5\u4fdd\u5b58\u4e0b\u6765\u4e86\uff0c\u76f4\u63a5\u4fdd\u5b58\u6210\u4e00\u4e2a\u771f\u6b63\u7684\u8868\uff0c\u4f9b\u4ee5\u540e\u4f7f\u7528\u4e86\u3002\u60a8\u53ef\u4ee5\u628a\u4e0a\u9762\u7684\u9ec4\u8272\u5b57\u4f53\u53bb\u6389\uff0c\u4ee3\u7801\u8fd8\u662f\u4e00\u6837\u53ef\u4ee5\u8fd0\u884c\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u8bed\u53e5\u5b9e\u73b0\uff0cSQL Server 2000 \u53caACCESS\u590d\u5236\u65e7\u8868OldTable\u7684\u7ed3\u6784\uff0c\u6216\u7ed3\u6784\u53ca\u5185\u5bb9\u5230\u65b0\u7684\u8868NewTable \u4e24\u4e2a\u90fd\u8bd5\u8fc7\u4e86\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u5728\u8fd9\u4e24\u4e2a\u6570\u636e\u5e93\u4e2d\uff08SQL Server 2000 \u53caACCESS\uff09\u90fd\u662f\u53ef\u4ee5\u901a\u8fc7\u7684\u3002 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":66594,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/727\/revisions\/66594"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=727"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}