{"id":561,"date":"2010-10-01T03:47:44","date_gmt":"2010-10-01T03:47:44","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=561"},"modified":"2010-10-01T03:47:44","modified_gmt":"2010-10-01T03:47:44","slug":"sql-server-int-%e4%b8%8e-%e7%a8%8b%e5%ba%8f%e4%b8%ad%e7%9a%84int","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/10\/01\/sql-server-int-%e4%b8%8e-%e7%a8%8b%e5%ba%8f%e4%b8%ad%e7%9a%84int\/","title":{"rendered":"SQL SERVER int \u4e0e \u7a0b\u5e8f\u4e2d\u7684int"},"content":{"rendered":"<blockquote><p>?SQL SERVER<br \/>\n<strong>bigint<\/strong><\/p>\n<p>\u4ece -2^63 (-9223372036854775808) \u5230 2^63-1 (9223372036854775807) \u7684\u6574\u578b\u6570\u636e\uff08\u6240\u6709\u6570\u5b57\uff09\u3002\u5b58\u50a8\u5927\u5c0f\u4e3a 8 \u4e2a\u5b57\u8282\u3002<\/p>\n<p><strong>int<\/strong><\/p>\n<p>\u4ece -2^31 (-2,147,483,648) \u5230 2^31 &#8211; 1 (2,147,483,647) \u7684\u6574\u578b\u6570\u636e\uff08\u6240\u6709\u6570\u5b57\uff09\u3002\u5b58\u50a8\u5927\u5c0f\u4e3a 4 \u4e2a\u5b57\u8282\u3002<strong>int <\/strong>\u7684 SQL-92 \u540c\u4e49\u5b57\u4e3a <strong>integer<\/strong>\u3002<\/p>\n<p><strong>smallint<\/strong><\/p>\n<p>\u4ece -2^15 (-32,768) \u5230 2^15 &#8211; 1 (32,767) \u7684\u6574\u578b\u6570\u636e\u3002\u5b58\u50a8\u5927\u5c0f\u4e3a 2 \u4e2a\u5b57\u8282\u3002<\/p>\n<p><strong>tinyint<\/strong><\/p>\n<p>\u4ece 0 \u5230 255 \u7684\u6574\u578b\u6570\u636e\u3002\u5b58\u50a8\u5927\u5c0f\u4e3a 1 \u5b57\u8282\u3002<\/p>\n<p>C#\u4e2d\uff1a?2,147,483,648 to 2,147,483,647? \u540cSqlServer\u7684int (\u540cjava )<\/p>\n<p>char?? 0 &#8211; 255<\/p>\n<p>C \u4e2d\uff0c\u7528\u4e24\u4e2a\u5b57\u8282\u8868\u793a\uff1a -2^15 (-32,768) \u5230 2^15 &#8211; 1 (32,767)<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>?SQL SERVER bigint \u4ece -2^63 (-9223372036854775808) \u5230 2^6 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}