{"id":359,"date":"2014-03-16T22:25:42","date_gmt":"2014-03-16T22:25:42","guid":{"rendered":"http:\/\/c058f544c737782deacefa532d9add4c"},"modified":"2018-07-28T22:07:42","modified_gmt":"2018-07-28T14:07:42","slug":"%e5%9f%ba%e6%9c%ac%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b-2","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/359","title":{"rendered":"\u57fa\u672c\u6570\u636e\u7c7b\u578b"},"content":{"rendered":"<div align=\"center\">\n<table style=\"width: 96%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"101\">\n<div>C#\u6570\u636e\u7c7b\u578b<\/div>\n<\/td>\n<td width=\"152\">\n<div>.NET\u6846\u67b6\u6570\u636e\u7c7b\u578b<\/div>\n<\/td>\n<td width=\"296\">\n<div>\u8bf4\u00a0\u660e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>bool<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Boolean<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u903b\u8f91\u503c\uff0ctrue\u6216\u8005false\uff0c\u9ed8\u8ba4\u503c\u4e3afalse<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>byte<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Byte<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u7684\u5b57\u8282\uff0c\u6240\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u662f0~255\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>sbyte<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.SByte<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u7684\u5b57\u8282\uff0c\u6240\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u662f-128~127\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>char<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Char<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768416\u4f4dUnicode\u5b57\u7b26\uff0c\u9ed8\u8ba4\u503c\u4e3a\u2019\/0\u2019<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>decimal<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Decimal<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u4e0d\u9075\u5b88\u56db\u820d\u4e94\u5165\u89c4\u5219\u7684\u5341\u8fdb\u5236\u6570\uff0c\u901a\u5e38\u7528\u4e8e\u8d22\u52a1\u65b9\u9762\u7684\u8ba1\u7b97\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0m<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>double<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Double<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u53cc\u7cbe\u5ea6\u7684\u6d6e\u70b9\u7c7b\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0d<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>float<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Single<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5355\u7cbe\u5ea6\u7684\u6d6e\u70b9\u7c7b\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0f<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>int<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int32<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768432\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>uint<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt32<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768432\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>long<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int64<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768464\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>ulong<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt64<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768464\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>object<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Object<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u6307\u5411\u7c7b\u5b9e\u4f8b\u7684\u5f15\u7528\uff0c\u9ed8\u8ba4\u503c\u4e3anull<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>short<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int16<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768416\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>ushort<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt16<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768416\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>string<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.String<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u6307\u5411\u5b57\u7b26\u4e32\u5bf9\u8c61\u7684\u5f15\u7528\uff0c\u9ed8\u8ba4\u503c\u4e3anull<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p><b><span style=\"font-family: Arial Black; font-size: 18px;\">C\u8bed\u8a00\u4e2d float\u3001double\u3001long\u00a0double\u7cbe\u5ea6\u3001\u6570\u503c\u8303\u56f4<\/span><\/b><\/p>\n<p align=\"left\">IEEE754\u6d6e\u70b9\u6570\u7684\u8868\u793a\u65b9\u6cd5\u3002C\u8bed\u8a00\u91cc\u5bf9float\u7c7b\u578b\u6570\u636e\u7684\u8868\u793a\u8303\u56f4\u4e3a-3.4*10^38\uff5e+3.4*10^38\u3002double\u4e3a-1.7*10^-308~1.7*10^308\uff0clong double\u4e3a-1.2*10^-4932~1.2*10^4932.<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">\u7c7b\u578b<\/p>\n<\/td>\n<td valign=\"top\" width=\"123\">\n<p align=\"left\">\u6bd4\u7279\uff08\u4f4d\uff09\u6570<\/p>\n<\/td>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">\u6709\u6548\u6570\u5b57<\/p>\n<\/td>\n<td valign=\"top\" width=\"201\">\n<p align=\"left\">\u6570\u503c\u8303\u56f4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">float<\/p>\n<\/td>\n<td valign=\"top\" width=\"123\">\n<p align=\"left\">32<\/p>\n<\/td>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">6~7<\/p>\n<\/td>\n<td valign=\"top\" width=\"201\">\n<p align=\"left\">-3.4*10^38\uff5e+3.4*10^38<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">double<\/p>\n<\/td>\n<td valign=\"top\" width=\"123\">\n<p align=\"left\">64<\/p>\n<\/td>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">15~16<\/p>\n<\/td>\n<td valign=\"top\" width=\"201\">\n<p align=\"left\">-1.7*10^-308~1.7*10^308<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">long<br \/>\ndouble<\/p>\n<\/td>\n<td valign=\"top\" width=\"123\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">18~19<\/p>\n<\/td>\n<td valign=\"top\" width=\"201\">\n<p align=\"left\">-1.2*10^-4932~1.2*10^4932<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">decimal<\/p>\n<\/td>\n<td valign=\"top\" width=\"123\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td valign=\"top\" width=\"122\">\n<p align=\"left\">28~29<\/p>\n<\/td>\n<td valign=\"top\" width=\"201\">\n<p align=\"left\">\u00b11.0*10^28 ~ \u00b17.9*10^28<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>\u57fa\u7840\u7c7b\u578b\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>byte: \u516b\u4f4d\u6574\u6570 -128\u2014\u2014127\uff0c\u53ef\u7528\u6765\u8282\u7701\u5185\u5b58\u7684\u4f7f\u7528\u3002<br \/>\nshort: 16\u4f4d\u6574\u6570 -32768\u2014\u201432,767\uff0c\u4e5f\u6bd4\u8f83\u7701\u5185\u5b58\u3002<br \/>\nint: 32\u4f4d\u6574\u6570 -2,147,483,648\u2014\u20142,147,483,647\uff0c\u4e00\u822c\u6765\u8bf4\u6574\u6570\u90fd\u591f\u7528\u4e86<br \/>\nlong: 64\u4f4d\u6574\u6570 -9,223,372,036,854,775,808\u2014\u2014 9,223,372,036,854,775,807\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u7528<br \/>\nfloat: 32\u4f4d\u6d6e\u70b9\uff0c\u5982\u679c\u6d6e\u70b9\u9700\u8981\u8282\u7701\u5185\u5b58\u7528\u8fd9\u4e2a\u3002<br \/>\nDouble: 64\u4f4d\u6d6e\u70b9\uff0c\u4e00\u822c\u975e\u6574\u6570\u6d6e\u70b9\u53ef\u7528\u8fd9\u4e2a\u3002<\/p>\n<p>&nbsp;<\/p>\n<p align=\"left\"><strong><span style=\"font-size: 14px;\"> \u7a76\u7adf\u5982\u4f55\u8ba1\u7b97\u8be5\u8303\u56f4\uff0c\u5206\u6790\u5982\u4e0b\uff1a<\/span><\/strong><\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u5bf9\u4e8e\u5355\u7cbe\u5ea6\u6d6e\u70b9\u6570\uff08float\uff09\u6765\u8bf4\uff0c\u7b26\u53f7\u4f4d\u4e00\u4f4d\uff0c\u6307\u6570\u4f4d8\u4f4d\uff0c\u5c3e\u657023\u4f4d\u3002\u6307\u6570\u80fd\u591f\u8868\u793a\u7684\u6307\u6570\u8303\u56f4\u4e3a-128~127\u3002\u5c3e\u6570\u4e3a23\u4f4d\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\">float\u548cdouble\u7684\u7cbe\u5ea6\u662f\u7531\u5c3e\u6570\u7684\u4f4d\u6570\u6765\u51b3\u5b9a\u7684\u3002\u6d6e\u70b9\u6570\u5728\u5185\u5b58\u4e2d\u662f\u6309\u79d1\u5b66\u8ba1\u6570\u6cd5\u6765\u5b58\u50a8\u7684\uff0c\u5176\u6574\u6570\u90e8\u5206\u59cb\u7ec8\u662f\u4e00\u4e2a<br \/>\n\u9690\u542b\u7740\u7684\u201c1\u201d\uff0c\u7531\u4e8e\u5b83\u662f\u4e0d\u53d8\u7684\uff0c\u6545\u4e0d\u80fd\u5bf9\u7cbe\u5ea6\u9020\u6210\u5f71\u54cd\u3002float\uff1a2^23 =<br \/>\n8388608\uff0c\u4e00\u5171\u4e03\u4f4d\uff0c\u8fd9\u610f\u5473\u7740\u6700\u591a\u80fd\u67097\u4f4d\u6709\u6548\u6570\u5b57\uff0c\u4f46\u7edd\u5bf9\u80fd\u4fdd\u8bc1\u7684\u4e3a6\u4f4d\uff0c\u4e5f\u5373float\u7684\u7cbe\u5ea6\u4e3a6~7\u4f4d\u6709\u6548\u6570\u5b57\uff1bdouble\uff1a2^52 =<br \/>\n4503599627370496\uff0c\u4e00\u517116\u4f4d\uff0c\u540c\u7406\uff0cdouble\u7684\u7cbe\u5ea6\u4e3a15~16\u4f4d\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u5176\u4e2d\u8d1f\u6307\u6570\u51b3\u5b9a\u4e86\u6d6e\u70b9\u6570\u6240\u80fd\u8868\u8fbe\u7684\u7edd\u5bf9\u503c\u6700\u5c0f\u7684\u975e\u96f6\u6570\uff1b\u800c\u6b63\u6307\u6570\u51b3\u5b9a\u4e86\u6d6e\u70b9\u6570\u6240\u80fd\u8868\u8fbe\u7684\u7edd\u5bf9\u503c\u6700\u5927\u7684\u6570\uff0c\u4e5f\u5373\u51b3\u5b9a\u4e86\u6d6e\u70b9\u6570\u7684\u53d6\u503c\u8303\u56f4\u3002float\u7684\u8303\u56f4\u4e3a-2^128 ~<br \/>\n+2^128\uff0c\u4e5f\u5373-3.40E+38 ~<br \/>\n+3.40E+38\uff1bdouble\u7684\u8303\u56f4\u4e3a-2^1024 ~<br \/>\n+2^1024\uff0c\u4e5f\u5373-1.79E+308<br \/>\n~+1.79E+308\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u4ee5float\u4e3a\u4f8b\uff0c\u5982\u4e0b\u8868:<\/span><\/p>\n<table style=\"width: 98%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"106\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u7b26\u53f7<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"186\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u5c3e\u6570<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"226\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u6307\u6570<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"106\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> 1<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"186\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> 23<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"226\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> 8<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"106\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u6570\u7b26\uff08+-\uff09<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"186\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> \u5c0f\u6570\u90e8\u5206\uff08\u51b3\u5b9a\u7cbe\u5ea6\uff09<\/span><\/p>\n<\/td>\n<td valign=\"top\" width=\"226\">\n<p align=\"left\"><span style=\"font-size: 14px;\"> -127~128 \u6307\u6570\uff08\u51b3\u5b9a\u8303\u56f4\uff09<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p align=\"left\"><strong><span style=\"font-size: 14px;\"> \u4f8b\u5982\uff1a<\/span><\/strong><\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\"> +1.1111111111111111111111*2^127\uff08\u5c0f\u6570\u70b9\u540e\u976223\u4e2a1\uff0c\u7531\u4e8e\u5c3e\u6570\u7684\u8303\u56f41\uff5e2\uff0c\u5176\u6700\u9ad8\u4f4d\u603b\u4e3a1\uff0c\u6545\u53ea\u9700\u5b58\u53d6\u5c0f\u6570\u90e8\u5206\uff0c\u6240\u4ee5\u5c0f\u6570\u4e3a\u662f23\u4f4d1\uff09\uff0c\u7ea6\u7b49\u4e8e2*2^127=3.4*10^38\u3002\u4e3a3.4*10^38\u8d1f\u6570\u4ea6\u7136\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 14px;\"> Double\u7684\u8ba1\u7b97\u4e0e\u6b64\u7c7b\u4f3c\uff0cdouble\u7684\u7b26\u53f7\u4f4d\u4e3a63\u4f4d\uff0c\u6307\u6570\u4e3a62\uff5e52\u4f4d\uff0c\u517111\u4f4d\u3002\u8868\u793a\u7684\u8303\u56f4\u4e3a-1024\uff5e1023\u3002\u5c3e\u6570\u4e3a51\uff5e0\u3002\u8868\u793a\u7684<br \/>\n\u8303\u56f4\u4e3a+1.1111111111111111..11111*2^1023\uff08\u5c0f\u6570\u70b9\u540e\u976252\u4e2a1\uff09\u4e3a1.7*10^308\u3002\u8d1f\u6570\u4ea6\u7136\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>mysql &amp; java:<\/strong><\/p>\n<table width=\"98%\" cellspacing=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td>\u7c7b\u578b\u540d\u79f0<\/td>\n<td>\u663e\u793a\u957f\u5ea6<\/td>\n<td>\u6570\u636e\u5e93\u7c7b\u578b<\/td>\n<td>JAVA\u7c7b\u578b<\/td>\n<td>JDBC\u7c7b\u578b\u7d22\u5f15(int)<\/td>\n<\/tr>\n<tr>\n<td>VARCHAR<\/td>\n<td>L+N<\/td>\n<td>VARCHAR<\/td>\n<td>java.lang.String<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>CHAR<\/td>\n<td>N<\/td>\n<td>CHAR<\/td>\n<td>java.lang.String<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>BLOB<\/td>\n<td>L+N<\/td>\n<td>BLOB<\/td>\n<td>java.lang.byte[]<\/td>\n<td>-4<\/td>\n<\/tr>\n<tr>\n<td>TEXT<\/td>\n<td>65535<\/td>\n<td>VARCHAR<\/td>\n<td>java.lang.String<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>INTEGER<\/td>\n<td>4<\/td>\n<td>INTEGER UNSIGNED<\/td>\n<td>java.lang.Long<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>TINYINT<\/td>\n<td>3<\/td>\n<td>TINYINT UNSIGNED<\/td>\n<td>java.lang.Integer<\/td>\n<td>-6<\/td>\n<\/tr>\n<tr>\n<td>SMALLINT<\/td>\n<td>5<\/td>\n<td>SMALLINT UNSIGNED<\/td>\n<td>java.lang.Integer<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>MEDIUMINT<\/td>\n<td>8<\/td>\n<td>MEDIUMINT UNSIGNED<\/td>\n<td>java.lang.Integer<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>BIT<\/td>\n<td>1<\/td>\n<td>BIT<\/td>\n<td>java.lang.Boolean<\/td>\n<td>-7<\/td>\n<\/tr>\n<tr>\n<td>BIGINT<\/td>\n<td>20<\/td>\n<td>BIGINT UNSIGNED<\/td>\n<td>java.math.BigInteger<\/td>\n<td>-5<\/td>\n<\/tr>\n<tr>\n<td>FLOAT<\/td>\n<td>4+8<\/td>\n<td>FLOAT<\/td>\n<td>java.lang.Float<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>DOUBLE<\/td>\n<td>22<\/td>\n<td>DOUBLE<\/td>\n<td>java.lang.Double<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>DECIMAL<\/td>\n<td>11<\/td>\n<td>DECIMAL<\/td>\n<td>java.math.BigDecimal<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>BOOLEAN<\/td>\n<td>1<\/td>\n<td>\u540cTINYINT<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>ID<\/td>\n<td>11<\/td>\n<td>PK (INTEGER UNSIGNED)<\/td>\n<td>java.lang.Long<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>DATE<\/td>\n<td>10<\/td>\n<td>DATE<\/td>\n<td>java.sql.Date<\/td>\n<td>91<\/td>\n<\/tr>\n<tr>\n<td>TIME<\/td>\n<td>8<\/td>\n<td>TIME<\/td>\n<td>java.sql.Time<\/td>\n<td>92<\/td>\n<\/tr>\n<tr>\n<td>DATETIME<\/td>\n<td>19<\/td>\n<td>DATETIME<\/td>\n<td>java.sql.Timestamp<\/td>\n<td>93<\/td>\n<\/tr>\n<tr>\n<td>TIMESTAMP<\/td>\n<td>19<\/td>\n<td>TIMESTAMP<\/td>\n<td>java.sql.Timestamp<\/td>\n<td>93<\/td>\n<\/tr>\n<tr>\n<td>YEAR<\/td>\n<td>4<\/td>\n<td>YEAR<\/td>\n<td>java.sql.Date<\/td>\n<td>91<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div style=\"text-align:left;widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;letter-spacing:normal;font:14px\/26px Arial;white-space:normal;orphans:2;color:#333333;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;\"><strong><span style=\"font-size:x-small;\"><br \/>\n<\/span><\/strong><\/div>\n<div align=\"center\">\n<table style=\"width:96%;\" height=\"349\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td width=\"101\">\n<div>C#\u6570\u636e\u7c7b\u578b<\/div>\n<\/td>\n<td width=\"152\">\n<div>.NET\u6846\u67b6\u6570\u636e\u7c7b\u578b<\/div>\n<\/td>\n<td width=\"296\">\n<div>\u8bf4&nbsp;\u660e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>bool<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Boolean<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u903b\u8f91\u503c\uff0ctrue\u6216\u8005false\uff0c\u9ed8\u8ba4\u503c\u4e3afalse<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>byte<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Byte<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u7684\u5b57\u8282\uff0c\u6240\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u662f0~255\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>sbyte<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.SByte<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u7684\u5b57\u8282\uff0c\u6240\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u662f-128~127\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>char<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Char<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768416\u4f4dUnicode\u5b57\u7b26\uff0c\u9ed8\u8ba4\u503c\u4e3a\u2019\/0\u2019<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>decimal<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.Decimal<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u4e0d\u9075\u5b88\u56db\u820d\u4e94\u5165\u89c4\u5219\u7684\u5341\u8fdb\u5236\u6570\uff0c\u901a\u5e38\u7528\u4e8e\u8d22\u52a1\u65b9\u9762\u7684\u8ba1\u7b97\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0m<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>double<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Double<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u53cc\u7cbe\u5ea6\u7684\u6d6e\u70b9\u7c7b\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0d<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>float<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Single<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5355\u7cbe\u5ea6\u7684\u6d6e\u70b9\u7c7b\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0.0f<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>int<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int32<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768432\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>uint<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt32<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768432\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>long<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int64<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768464\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>ulong<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt64<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768464\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>object<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Object<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u6307\u5411\u7c7b\u5b9e\u4f8b\u7684\u5f15\u7528\uff0c\u9ed8\u8ba4\u503c\u4e3anull<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>short<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.Int16<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u5e26\u7b26\u53f7\u768416\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">\n<div>ushort<\/div>\n<\/td>\n<td width=\"152\">\n<div>System.UInt16<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u65e0\u7b26\u53f7\u768416\u4f4d\u6574\u578b\uff0c\u9ed8\u8ba4\u503c\u4e3a0<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"101\">\n<div>string<\/div>\n<\/td>\n<td valign=\"top\" width=\"152\">\n<div>System.String<\/div>\n<\/td>\n<td valign=\"top\" width=\"296\">\n<div>\u6307\u5411\u5b57\u7b26\u4e32\u5bf9\u8c61\u7684\u5f15\u7528\uff0c\u9ed8\u8ba4\u503c\u4e3anull<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/359\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[279],"tags":[159],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-dotnet","tag-159"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}