{"id":10,"date":"2016-05-12T11:01:51","date_gmt":"2016-05-12T03:01:51","guid":{"rendered":"http:\/\/www.inhhh.com\/?p=10"},"modified":"2016-05-12T11:01:51","modified_gmt":"2016-05-12T03:01:51","slug":"%e6%94%b9%e5%86%99%e4%bb%a3%e7%a0%81%e4%b8%ba%e7%ad%96%e7%95%a5%e4%b8%ba%e7%8e%8btsking-%e6%ba%90%e4%bb%a3%e7%a0%81-%e5%a2%9e%e5%8a%a0-sql%e5%ad%98%e5%82%a8%e4%b8%80","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=10","title":{"rendered":"\u6539\u5199\u4ee3\u7801\u4e3a\u7b56\u7565\u4e3a\u738bTSKING (\u6e90\u4ee3\u7801) \u589e\u52a0 SQL\u5b58\u50a8\u4e00"},"content":{"rendered":"<p>\u8fd9\u4e2a\u8fc7\u7a0b\u5c06\u662f\u6bd4\u8f83\u957f\u7684\uff0c\u9700\u8981\u4e00\u5b9a\u7684\u65f6\u95f4\uff0c\u9996\u5148\u8bf4\u660e\uff0c\u589e\u52a0SQL\u5b58\u50a8\u5e76\u4e0d\u662f\u4e0d\u7528\u539f\u6765\u7684\u6587\u4ef6\u5b58\u50a8\uff0c\u53ea\u662fSQL\u5728\u67d0\u4e9b\u65b9\u9762\u67e5\u8be2\u4e0a\u6bd4\u8f83\u4f18\u5316\uff0c\u7f16\u5199SQL\u67e5\u8be2\u4f30\u8ba1\u5f88\u591a\u4eba\u90fd\u4f1a\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff0c\u521b\u5efa\u6570\u636e\u5e93 \u4e0e \u8868\u683c<br \/>\n\u9996\u5148\u521b\u5efa\u6570\u636e\u5e93\uff0c\u8fd9\u65b9\u9762\uff0c\u7531\u4e8e\u4e4b\u524d\u5df2\u7ecf\u770b\u8fc7\u76f8\u5173\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ea\u662f\u628a\u539f\u6709\u6587\u4ef6\u6570\u636e\uff0c\u6309\u539f\u6765\u7684\u683c\u5f0f\u6784\u5efa\u8868\u7ed3\u6784\uff0c<\/p>\n<p>\u6570\u636e\u7ed3\u6784\u7684\u53c2\u8003\u6587\u6863\uff0c<br \/>\n\u53ef\u4ee5\u67e5\u9605\uff1a\u00a0<a href=\"http:\/\/www.inhhh.com\/download\/\u80a1\u7968\u6570\u636e\u683c\u5f0f\u6587\u6863(\u9002\u7528\u4e8e\u80a1\u7968\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458).pdf\" target=\"_blank\">http:\/\/www.inhhh.com\/download\/\u80a1\u7968\u6570\u636e\u683c\u5f0f\u6587\u6863(\u9002\u7528\u4e8e\u80a1\u7968\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458).pdf<\/a><\/p>\n<p>\u521b\u5efa\u7684\u9636\u6bb5\u5c31\u662f\u5199SQL\u4e86\uff0c\u8fd9\u91cc\u53ea\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4f8b\u5982 [\u65e5\u7ebf] \u6570\u636e<\/p>\n<p>struct DAY_DATA {<br \/>\n__time32_t date; \u00a0 \u00a0 \u00a0 \u00a0\u00a0\/\/\u65e5\u671f<br \/>\nfloat open; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/\u5f00\u76d8\u4ef7<br \/>\nfloat high; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6700\u9ad8\u4ef7<br \/>\nfloat low; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\/\/\u6700\u4f4e\u4ef7<br \/>\nfloat close; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/\u6536\u76d8\u4ef7<br \/>\nfloat amount; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\/\/\u6210\u4ea4\u91cf<br \/>\nfloat money; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\/\/\u6210\u4ea4\u91d1\u989d<br \/>\nunsigned short int rise;\u00a0\/\/ \u4e0a\u6da8\u5bb6\u6570<br \/>\nunsigned short int fall; \u00a0\/\/ \u4e0b\u8dcc\u5bb6\u6570<br \/>\n};<\/p>\n<p>CREATE TABLE [dbo].[STK_KDATA_DAY](<br \/>\n[m_dwHeadTag] [varchar](4) NULL,<br \/>\n[m_wMarket] [varchar](8) NULL, \u00a0 \u00a0 \u00a0\/\/\u5e02\u573a<br \/>\n[m_szLabel] [varchar](10) NULL, \u00a0 \u00a0 \u00a0\u00a0\/\/\u80a1\u7968\u4ee3\u7801<br \/>\n[m_time] [datetime] NULL, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/\u65e5\u671f<br \/>\n[m_fOpen] [numeric](18, 6) NULL, \u00a0 \u00a0\u00a0\/\/\u5f00\u76d8\u4ef7<br \/>\n[m_fHigh] [numeric](18, 6) NULL, \u00a0 \u00a0 \u00a0\/\/\u6700\u9ad8\u4ef7<br \/>\n[m_fLow] [numeric](18, 6) NULL, \u00a0 \u00a0 \u00a0\/\/\u6700\u4f4e\u4ef7<br \/>\n[m_fClose] [numeric](18, 6) NULL, \u00a0 \u00a0\u00a0\/\/\u6536\u76d8\u4ef7<br \/>\n[m_fVolume] [numeric](18, 6) NULL, \u00a0\/\/\u6210\u4ea4\u91cf<br \/>\n[m_fAmount] [numeric](18, 6) NULL, \u00a0\/\/\u6210\u4ea4\u91d1\u989d<br \/>\n[m_wAdvance] [varchar](4) NULL, \u00a0 \u00a0 \u00a0\/\/\u4e0a\u6da8\u5bb6\u6570<br \/>\n[m_wDecline] [varchar](4) NULL \u00a0 \u00a0 \u00a0 \u00a0\u00a0\/\/\u4e0b\u8dcc\u5bb6\u6570<br \/>\n) ON [PRIMARY]<\/p>\n<p>\u4e0b\u56fe\u4e3a\u521b\u5efa\u7684\u5168\u90e8\u8868\uff0c\u5f53\u7136\u5f53\u4e2d\u6709\u4e9b\u4e0e\u5b58\u50a8\u65e0\u5173\u3002<\/p>\n<div id='gallery-1' class='gallery galleryid-10 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon '>\n\t\t\t\t<a href='http:\/\/www.inhhh.com\/blog\/?attachment_id=11'>sqlstruct<\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p>\u6570\u636e\u5e93\u7f16\u5199\u5b8c\u6bd5\uff0c\u4e4b\u540e\u4f1a\u8fdb\u884c\u4ee3\u7801\u7f16\u5199\u3002\u3002\u5f85\u7eed\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u8fc7\u7a0b\u5c06\u662f\u6bd4\u8f83\u957f\u7684\uff0c\u9700\u8981\u4e00\u5b9a\u7684\u65f6\u95f4\uff0c\u9996\u5148\u8bf4\u660e\uff0c\u589e\u52a0SQL\u5b58\u50a8\u5e76\u4e0d\u662f\u4e0d\u7528\u539f\u6765\u7684\u6587\u4ef6\u5b58\u50a8\uff0c\u53ea\u662fSQL\u5728\u67d0\u4e9b\u65b9\u9762\u67e5<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=10\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,5,7],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-it","tag-stking","tag-5","tag-7"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":1,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":12,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions\/12"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}