{"id":64250,"date":"2024-10-14T11:10:21","date_gmt":"2024-10-14T03:10:21","guid":{"rendered":"https:\/\/server.hk\/cnblog\/64250\/"},"modified":"2024-10-14T11:10:21","modified_gmt":"2024-10-14T03:10:21","slug":"ms-sql-server-2000%e7%b3%bb%e7%b5%b1%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/64250\/","title":{"rendered":"MS SQL Server 2000\u7cfb\u7d71\u6578\u64da\u985e\u578b\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<h1 id=\"ms-sql-server-2000%e7%b3%bb%e7%b5%b1%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f-utUYQcFVpA\">MS SQL Server 2000\u7cfb\u7d71\u6578\u64da\u985e\u578b\u6709\u54ea\u4e9b\uff1f<\/h1>\n<p>MS SQL Server 2000\u662f\u4e00\u6b3e\u5ee3\u6cdb\u4f7f\u7528\u7684\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u6578\u64da\u985e\u578b\u4ee5\u652f\u6301\u4e0d\u540c\u7684\u6578\u64da\u5b58\u5132\u9700\u6c42\u3002\u4e86\u89e3\u9019\u4e9b\u6578\u64da\u985e\u578b\u5c0d\u65bc\u8a2d\u8a08\u548c\u7ba1\u7406\u6578\u64da\u5eab\u81f3\u95dc\u91cd\u8981\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39MS SQL Server 2000\u4e2d\u7684\u4e3b\u8981\u6578\u64da\u985e\u578b\u3002<\/p>\n<h2 id=\"1-%e6%95%b4%e6%95%b8%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">1. \u6574\u6578\u985e\u578b<\/h2>\n<p>\u6574\u6578\u985e\u578b\u7528\u65bc\u5b58\u5132\u6574\u6578\u503c\uff0cMS SQL Server 2000\u63d0\u4f9b\u4e86\u5e7e\u7a2e\u4e0d\u540c\u7684\u6574\u6578\u985e\u578b\uff1a<\/p>\n<ul>\n<li><code>TINYINT<\/code>: \u5b58\u5132\u7bc4\u570d\u70ba0\u5230255\u7684\u6574\u6578\uff0c\u4f54\u75281\u500b\u5b57\u7bc0\u3002<\/li>\n<li><code>SMALLINT<\/code>: \u5b58\u5132\u7bc4\u570d\u70ba-32,768\u523032,767\u7684\u6574\u6578\uff0c\u4f54\u75282\u500b\u5b57\u7bc0\u3002<\/li>\n<li><code>INT<\/code>: \u5b58\u5132\u7bc4\u570d\u70ba-2,147,483,648\u52302,147,483,647\u7684\u6574\u6578\uff0c\u4f54\u75284\u500b\u5b57\u7bc0\u3002<\/li>\n<li><code>BIGINT<\/code>: \u5b58\u5132\u7bc4\u570d\u70ba-9,223,372,036,854,775,808\u52309,223,372,036,854,775,807\u7684\u6574\u6578\uff0c\u4f54\u75288\u500b\u5b57\u7bc0\u3002<\/li>\n<\/ul>\n<h2 id=\"2-%e6%b5%ae%e9%bb%9e%e6%95%b8%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">2. \u6d6e\u9ede\u6578\u985e\u578b<\/h2>\n<p>\u6d6e\u9ede\u6578\u985e\u578b\u7528\u65bc\u5b58\u5132\u5e36\u5c0f\u6578\u7684\u6578\u503c\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><code>FLOAT<\/code>: \u7528\u65bc\u5b58\u5132\u6d6e\u9ede\u6578\uff0c\u4f54\u75284\u62168\u500b\u5b57\u7bc0\uff0c\u5177\u9ad4\u53d6\u6c7a\u65bc\u7cbe\u5ea6\u3002<\/li>\n<li><code>REAL<\/code>: \u5b58\u5132\u55ae\u7cbe\u5ea6\u6d6e\u9ede\u6578\uff0c\u4f54\u75284\u500b\u5b57\u7bc0\u3002<\/li>\n<\/ul>\n<h2 id=\"3-%e5%ad%97%e7%ac%a6%e4%b8%b2%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">3. \u5b57\u7b26\u4e32\u985e\u578b<\/h2>\n<p>\u5b57\u7b26\u4e32\u985e\u578b\u7528\u65bc\u5b58\u5132\u6587\u672c\u6578\u64da\uff0cMS SQL Server 2000\u63d0\u4f9b\u4e86\u591a\u7a2e\u9078\u64c7\uff1a<\/p>\n<ul>\n<li><code>CHAR(n)<\/code>: \u56fa\u5b9a\u9577\u5ea6\u7684\u5b57\u7b26\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52308,000\u3002<\/li>\n<li><code>VARCHAR(n)<\/code>: \u53ef\u8b8a\u9577\u5ea6\u7684\u5b57\u7b26\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52308,000\u3002<\/li>\n<li><code>NCHAR(n)<\/code>: \u56fa\u5b9a\u9577\u5ea6\u7684Unicode\u5b57\u7b26\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52304,000\u3002<\/li>\n<li><code>NVARCHAR(n)<\/code>: \u53ef\u8b8a\u9577\u5ea6\u7684Unicode\u5b57\u7b26\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52304,000\u3002<\/li>\n<li><code>TEXT<\/code>: \u7528\u65bc\u5b58\u5132\u9577\u6587\u672c\u6578\u64da\uff0c\u6700\u5927\u53ef\u90542^31-1\u5b57\u7bc0\u3002<\/li>\n<li><code>NTEXT<\/code>: \u7528\u65bc\u5b58\u5132\u9577Unicode\u6587\u672c\u6578\u64da\uff0c\u6700\u5927\u53ef\u90542^30-1\u5b57\u7bc0\u3002<\/li>\n<\/ul>\n<h2 id=\"4-%e6%97%a5%e6%9c%9f%e5%92%8c%e6%99%82%e9%96%93%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">4. \u65e5\u671f\u548c\u6642\u9593\u985e\u578b<\/h2>\n<p>\u65e5\u671f\u548c\u6642\u9593\u985e\u578b\u7528\u65bc\u5b58\u5132\u6642\u9593\u76f8\u95dc\u7684\u6578\u64da\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><code>DATETIME<\/code>: \u5b58\u5132\u65e5\u671f\u548c\u6642\u9593\uff0c\u7bc4\u570d\u5f9e1753\u5e741\u67081\u65e5\u52309999\u5e7412\u670831\u65e5\u3002<\/li>\n<li><code>SMALLDATETIME<\/code>: \u5b58\u5132\u8f03\u5c0f\u7bc4\u570d\u7684\u65e5\u671f\u548c\u6642\u9593\uff0c\u7bc4\u570d\u5f9e1900\u5e741\u67081\u65e5\u52302079\u5e746\u67086\u65e5\u3002<\/li>\n<\/ul>\n<h2 id=\"5-%e4%ba%8c%e9%80%b2%e5%88%b6%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">5. \u4e8c\u9032\u5236\u985e\u578b<\/h2>\n<p>\u4e8c\u9032\u5236\u985e\u578b\u7528\u65bc\u5b58\u5132\u4e8c\u9032\u5236\u6578\u64da\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><code>BINARY(n)<\/code>: \u56fa\u5b9a\u9577\u5ea6\u7684\u4e8c\u9032\u5236\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52308,000\u3002<\/li>\n<li><code>VARBINARY(n)<\/code>: \u53ef\u8b8a\u9577\u5ea6\u7684\u4e8c\u9032\u5236\u6578\u64da\uff0cn\u7684\u7bc4\u570d\u70ba1\u52308,000\u3002<\/li>\n<li><code>IMAGE<\/code>: \u7528\u65bc\u5b58\u5132\u9577\u4e8c\u9032\u5236\u6578\u64da\uff0c\u6700\u5927\u53ef\u90542^31-1\u5b57\u7bc0\u3002<\/li>\n<\/ul>\n<h2 id=\"6-%e5%85%b6%e4%bb%96%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b-utUYQcFVpA\">6. \u5176\u4ed6\u6578\u64da\u985e\u578b<\/h2>\n<p>\u9664\u4e86\u4e0a\u8ff0\u985e\u578b\u5916\uff0cMS SQL Server 2000\u9084\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5176\u4ed6\u6578\u64da\u985e\u578b\uff0c\u5982\uff1a<\/p>\n<ul>\n<li><code>BIT<\/code>: \u7528\u65bc\u5b58\u5132\u5e03\u723e\u503c\uff080\u62161\uff09\uff0c\u4f54\u75281\u500b\u5b57\u7bc0\u3002<\/li>\n<li><code>MONEY<\/code>: \u7528\u65bc\u5b58\u5132\u8ca8\u5e63\u503c\uff0c\u4f54\u75288\u500b\u5b57\u7bc0\u3002<\/li>\n<li><code>SMALLMONEY<\/code>: \u7528\u65bc\u5b58\u5132\u8f03\u5c0f\u7684\u8ca8\u5e63\u503c\uff0c\u4f54\u75284\u500b\u5b57\u7bc0\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-utUYQcFVpA\">\u7e3d\u7d50<\/h2>\n<p>\u4e86\u89e3MS SQL Server 2000\u7684\u6578\u64da\u985e\u578b\u5c0d\u65bc\u6578\u64da\u5eab\u8a2d\u8a08\u548c\u7ba1\u7406\u81f3\u95dc\u91cd\u8981\u3002\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u985e\u578b\u4e0d\u50c5\u80fd\u63d0\u9ad8\u6578\u64da\u5b58\u5132\u7684\u6548\u7387\uff0c\u9084\u80fd\u589e\u5f37\u6578\u64da\u7684\u5b8c\u6574\u6027\u548c\u5b89\u5168\u6027\u3002\u82e5\u60a8\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u6709\u9032\u4e00\u6b65\u7684\u9700\u6c42\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a>\u4f86\u63d0\u5347\u60a8\u7684\u696d\u52d9\u904b\u884c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3MS SQL Server 2000\u7684\u7cfb\u7d71\u6578\u64da\u985e\u578b\uff0c\u5305\u62ec\u6574\u6578\u3001\u6d6e\u9ede\u6578\u3001\u5b57\u7b26\u3001\u65e5\u671f\u548c\u4e8c\u9032\u5236\u7b49\uff0c\u52a9\u60a8\u6709\u6548\u7ba1\u7406\u6578\u64da\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-64250","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/64250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=64250"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/64250\/revisions"}],"predecessor-version":[{"id":64251,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/64250\/revisions\/64251"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=64250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=64250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=64250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}