{"id":3145,"date":"2014-10-26T20:56:17","date_gmt":"2014-10-26T12:56:17","guid":{"rendered":"https:\/\/sdeno.com\/?p=3145"},"modified":"2014-10-26T20:57:16","modified_gmt":"2014-10-26T12:57:16","slug":"mysql%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=3145","title":{"rendered":"mysql\u6570\u636e\u7c7b\u578b\u5927\u5168"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>\u6570\u503c\u7c7b\u578b<\/strong><\/span><br \/>\nMySQL \u7684\u6570\u503c\u6570\u636e\u7c7b\u578b\u53ef\u4ee5\u5927\u81f4\u5212\u5206\u4e3a\u4e24\u4e2a\u7c7b\u522b\uff0c\u4e00\u4e2a\u662f\u6574\u6570\uff0c\u53e6\u4e00\u4e2a\u662f\u6d6e\u70b9\u6570\u6216\u5c0f\u6570\u3002\u8bb8\u591a\u4e0d\u540c\u7684\u5b50\u7c7b\u578b\u5bf9\u8fd9\u4e9b\u7c7b\u522b\u4e2d\u7684\u6bcf\u4e00\u4e2a\u90fd\u662f\u53ef\u7528\u7684\uff0c\u6bcf\u4e2a\u5b50\u7c7b\u578b\u652f\u6301\u4e0d\u540c\u5927\u5c0f\u7684\u6570\u636e\uff0c\u5e76\u4e14 MySQL \u5141\u8bb8\u6211\u4eec\u6307\u5b9a\u6570\u503c\u5b57\u6bb5\u4e2d\u7684\u503c\u662f\u5426\u6709\u6b63\u8d1f\u4e4b\u5206\u6216\u8005\u7528\u96f6\u586b\u8865\u3002<\/p>\n<p>\u8868\u5217\u51fa\u4e86\u5404\u79cd\u6570\u503c\u7c7b\u578b\u4ee5\u53ca\u5b83\u4eec\u7684\u5141\u8bb8\u8303\u56f4\u548c\u5360\u7528\u7684\u5185\u5b58\u7a7a\u95f4\u3002<\/p>\n<p>&nbsp;<\/p>\n<table style=\"margin-bottom: 0px; width: 496px; height: 841px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" align=\"center\">\n<tbody>\n<tr>\n<td>\n<div align=\"left\"><strong>\u7c7b\u578b<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u5927\u5c0f<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u8303\u56f4\uff08\u6709\u7b26\u53f7\uff09<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u8303\u56f4\uff08\u65e0\u7b26\u53f7\uff09<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u7528\u9014<\/strong><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TINYINT<\/div>\n<\/td>\n<td>\n<div align=\"left\">1 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-128\uff0c127)<\/div>\n<\/td>\n<td>\n<div align=\"left\">(0\uff0c255)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5c0f\u6574\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">SMALLINT<\/div>\n<\/td>\n<td>\n<div align=\"left\">2 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-32 768\uff0c32 767)<\/div>\n<\/td>\n<td>\n<div align=\"left\">(0\uff0c65 535)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5927\u6574\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">MEDIUMINT<\/div>\n<\/td>\n<td>\n<div align=\"left\">3 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-8 388 608\uff0c8 388 607)<\/div>\n<\/td>\n<td>\n<div align=\"left\">(0\uff0c16 777 215)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5927\u6574\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">INT\u6216INTEGER<\/div>\n<\/td>\n<td>\n<div align=\"left\">4 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-2 147 483 648\uff0c2 147 483 647)<\/div>\n<\/td>\n<td>\n<div align=\"left\">(0\uff0c4 294 967 295)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5927\u6574\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">BIGINT<\/div>\n<\/td>\n<td>\n<div align=\"left\">8 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-9 233 372 036 854 775 808\uff0c9 223 372 036 854 775 807)<\/div>\n<\/td>\n<td>\n<div align=\"left\">(0\uff0c18 446 744 073 709 551 615)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u6781\u5927\u6574\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">FLOAT<\/div>\n<\/td>\n<td>\n<div align=\"left\">4 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(-3.402 823 466 E+38\uff0c1.175 494 351 E-38)\uff0c0\uff0c(1.175 494 351 E-38\uff0c3.402 823 466 351 E+38)<\/div>\n<\/td>\n<td>\n<div align=\"left\">0\uff0c(1.175 494 351 E-38\uff0c3.402 823 466 E+38)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5355\u7cbe\u5ea6<br \/>\n\u6d6e\u70b9\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">DOUBLE<\/div>\n<\/td>\n<td>\n<div align=\"left\">8 \u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">(1.797 693 134 862 315 7 E+308\uff0c2.225 073 858 507 201 4 E-308)\uff0c0\uff0c(2.225 073 858 507 201 4 E-308\uff0c1.797 693 134 862 315 7 E+308)<\/div>\n<\/td>\n<td>\n<div align=\"left\">0\uff0c(2.225 073 858 507 201 4 E-308\uff0c1.797 693 134 862 315 7 E+308)<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u53cc\u7cbe\u5ea6<br \/>\n\u6d6e\u70b9\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">DECIMAL<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5bf9DECIMAL(M,D) \uff0c\u5982\u679cM&gt;D\uff0c\u4e3aM+2\u5426\u5219\u4e3aD+2<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4f9d\u8d56\u4e8eM\u548cD\u7684\u503c<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4f9d\u8d56\u4e8eM\u548cD\u7684\u503c<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5c0f\u6570\u503c<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>INT \u7c7b\u578b<\/strong><\/span><br \/>\n\u5728 MySQL \u4e2d\u652f\u6301\u7684 5 \u4e2a\u4e3b\u8981\u6574\u6570\u7c7b\u578b\u662f TINYINT\uff0cSMALLINT\uff0cMEDIUMINT\uff0cINT \u548c BIGINT\u3002\u8fd9\u4e9b\u7c7b\u578b\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u662f\u76f8\u540c\u7684\uff0c\u53ea\u6709\u5b83\u4eec\u5b58\u50a8\u7684\u503c\u7684\u5927\u5c0f\u662f\u4e0d\u76f8\u540c\u7684\u3002<\/p>\n<p>MySQL \u4ee5\u4e00\u4e2a\u53ef\u9009\u7684\u663e\u793a\u5bbd\u5ea6\u6307\u793a\u5668\u7684\u5f62\u5f0f\u5bf9 SQL \u6807\u51c6\u8fdb\u884c\u6269\u5c55\uff0c\u8fd9\u6837\u5f53\u4ece\u6570\u636e\u5e93\u68c0\u7d22\u4e00\u4e2a\u503c\u65f6\uff0c\u53ef\u4ee5\u628a\u8fd9\u4e2a\u503c\u52a0\u957f\u5230\u6307\u5b9a\u7684\u957f\u5ea6\u3002\u4f8b\u5982\uff0c\u6307\u5b9a\u4e00\u4e2a\u5b57\u6bb5\u7684\u7c7b\u578b\u4e3a INT(6)\uff0c\u5c31\u53ef\u4ee5\u4fdd\u8bc1\u6240\u5305\u542b\u6570\u5b57\u5c11\u4e8e 6 \u4e2a\u7684\u503c\u4ece\u6570\u636e\u5e93\u4e2d\u68c0\u7d22\u51fa\u6765\u65f6\u80fd\u591f\u81ea\u52a8\u5730\u7528\u7a7a\u683c\u586b\u5145\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528\u4e00\u4e2a\u5bbd\u5ea6\u6307\u793a\u5668\u4e0d\u4f1a\u5f71\u54cd\u5b57\u6bb5\u7684\u5927\u5c0f\u548c\u5b83\u53ef\u4ee5\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u3002<\/p>\n<p>\u4e07\u4e00\u6211\u4eec\u9700\u8981\u5bf9\u4e00\u4e2a\u5b57\u6bb5\u5b58\u50a8\u4e00\u4e2a\u8d85\u51fa\u8bb8\u53ef\u8303\u56f4\u7684\u6570\u5b57\uff0cMySQL \u4f1a\u6839\u636e\u5141\u8bb8\u8303\u56f4\u6700\u63a5\u8fd1\u5b83\u7684\u4e00\u7aef\u622a\u77ed\u540e\u518d\u8fdb\u884c\u5b58\u50a8\u3002\u8fd8\u6709\u4e00\u4e2a\u6bd4\u8f83\u7279\u522b\u7684\u5730\u65b9\u662f\uff0cMySQL \u4f1a\u5728\u4e0d\u5408\u89c4\u5b9a\u7684\u503c\u63d2\u5165\u8868\u524d\u81ea\u52a8\u4fee\u6539\u4e3a 0\u3002<\/p>\n<p>UNSIGNED \u4fee\u9970\u7b26\u89c4\u5b9a\u5b57\u6bb5\u53ea\u4fdd\u5b58\u6b63\u503c\u3002\u56e0\u4e3a\u4e0d\u9700\u8981\u4fdd\u5b58\u6570\u5b57\u7684\u6b63\u3001\u8d1f\u7b26\u53f7\uff0c\u53ef\u4ee5\u5728\u50a8\u65f6\u8282\u7ea6\u4e00\u4e2a\u201c\u4f4d\u201d\u7684\u7a7a\u95f4\u3002\u4ece\u800c\u589e\u5927\u8fd9\u4e2a\u5b57\u6bb5\u53ef\u4ee5\u5b58\u50a8\u7684\u503c\u7684\u8303\u56f4\u3002<\/p>\n<p>ZEROFILL \u4fee\u9970\u7b26\u89c4\u5b9a 0\uff08\u4e0d\u662f\u7a7a\u683c\uff09\u53ef\u4ee5\u7528\u6765\u771f\u8865\u8f93\u51fa\u7684\u503c\u3002\u4f7f\u7528\u8fd9\u4e2a\u4fee\u9970\u7b26\u53ef\u4ee5\u963b\u6b62 MySQL \u6570\u636e\u5e93\u5b58\u50a8\u8d1f\u503c\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>FLOAT\u3001DOUBLE \u548c DECIMAL \u7c7b\u578b<\/strong><\/span><br \/>\nMySQL \u652f\u6301\u7684\u4e09\u4e2a\u6d6e\u70b9\u7c7b\u578b\u662f FLOAT\u3001DOUBLE \u548c DECIMAL \u7c7b\u578b\u3002FLOAT \u6570\u503c\u7c7b\u578b\u7528\u4e8e\u8868\u793a\u5355\u7cbe\u5ea6\u6d6e\u70b9\u6570\u503c\uff0c\u800c DOUBLE \u6570\u503c\u7c7b\u578b\u7528\u4e8e\u8868\u793a\u53cc\u7cbe\u5ea6\u6d6e\u70b9\u6570\u503c\u3002<\/p>\n<p>\u4e0e\u6574\u6570\u4e00\u6837\uff0c\u8fd9\u4e9b\u7c7b\u578b\u4e5f\u5e26\u6709\u9644\u52a0\u53c2\u6570\uff1a\u4e00\u4e2a\u663e\u793a\u5bbd\u5ea6\u6307\u793a\u5668\u548c\u4e00\u4e2a\u5c0f\u6570\u70b9\u6307\u793a\u5668\u3002\u6bd4\u5982\u8bed\u53e5 FLOAT(7,3) \u89c4\u5b9a\u663e\u793a\u7684\u503c\u4e0d\u4f1a\u8d85\u8fc7 7 \u4f4d\u6570\u5b57\uff0c\u5c0f\u6570\u70b9\u540e\u9762\u5e26\u6709 3 \u4f4d\u6570\u5b57\u3002<\/p>\n<p>\u5bf9\u4e8e\u5c0f\u6570\u70b9\u540e\u9762\u7684\u4f4d\u6570\u8d85\u8fc7\u5141\u8bb8\u8303\u56f4\u7684\u503c\uff0cMySQL \u4f1a\u81ea\u52a8\u5c06\u5b83\u56db\u820d\u4e94\u5165\u4e3a\u6700\u63a5\u8fd1\u5b83\u7684\u503c\uff0c\u518d\u63d2\u5165\u5b83\u3002<\/p>\n<p>DECIMAL \u6570\u636e\u7c7b\u578b\u7528\u4e8e\u7cbe\u5ea6\u8981\u6c42\u975e\u5e38\u9ad8\u7684\u8ba1\u7b97\u4e2d\uff0c\u8fd9\u79cd\u7c7b\u578b\u5141\u8bb8\u6307\u5b9a\u6570\u503c\u7684\u7cbe\u5ea6\u548c\u8ba1\u6570\u65b9\u6cd5\u4f5c\u4e3a\u9009\u62e9\u53c2\u6570\u3002\u7cbe\u5ea6\u5728\u8fd9\u91cc\u6307\u4e3a\u8fd9\u4e2a\u503c\u4fdd\u5b58\u7684\u6709\u6548\u6570\u5b57\u7684\u603b\u4e2a\u6570\uff0c\u800c\u8ba1\u6570\u65b9\u6cd5\u8868\u793a\u5c0f\u6570\u70b9\u540e\u6570\u5b57\u7684\u4f4d\u6570\u3002\u6bd4\u5982\u8bed\u53e5 DECIMAL(7,3) \u89c4\u5b9a\u4e86\u5b58\u50a8\u7684\u503c\u4e0d\u4f1a\u8d85\u8fc7 7 \u4f4d\u6570\u5b57\uff0c\u5e76\u4e14\u5c0f\u6570\u70b9\u540e\u4e0d\u8d85\u8fc7 3 \u4f4d\u3002<\/p>\n<p>\u5ffd\u7565 DECIMAL \u6570\u636e\u7c7b\u578b\u7684\u7cbe\u5ea6\u548c\u8ba1\u6570\u65b9\u6cd5\u4fee\u9970\u7b26\u5c06\u4f1a\u4f7f MySQL \u6570\u636e\u5e93\u628a\u6240\u6709\u6807\u8bc6\u4e3a\u8fd9\u4e2a\u6570\u636e\u7c7b\u578b\u7684\u5b57\u6bb5\u7cbe\u5ea6\u8bbe\u7f6e\u4e3a 10\uff0c\u8ba1\u7b97\u65b9\u6cd5\u8bbe\u7f6e\u4e3a 0\u3002<\/p>\n<p>UNSIGNED \u548c ZEROFILL \u4fee\u9970\u7b26\u4e5f\u53ef\u4ee5\u88ab FLOAT\u3001DOUBLE \u548c DECIMAL \u6570\u636e\u7c7b\u578b\u4f7f\u7528\u3002\u5e76\u4e14\u6548\u679c\u4e0e INT \u6570\u636e\u7c7b\u578b\u76f8\u540c\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u5b57\u7b26\u4e32\u7c7b\u578b<\/strong><\/span><br \/>\nMySQL \u63d0\u4f9b\u4e86 8 \u4e2a\u57fa\u672c\u7684\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u53ef\u4ee5\u5b58\u50a8\u7684\u8303\u56f4\u4ece\u7b80\u5355\u7684\u4e00\u4e2a\u5b57\u7b26\u5230\u5de8\u5927\u7684\u6587\u672c\u5757\u6216\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u6570\u636e\u3002<\/p>\n<p>&nbsp;<\/p>\n<table style=\"width: 510px; height: 448px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" align=\"center\">\n<tbody>\n<tr>\n<td>\n<div align=\"left\"><strong>\u7c7b\u578b<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u5927\u5c0f<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u7528\u9014<\/strong><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">CHAR<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-255\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5b9a\u957f\u5b57\u7b26\u4e32<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">VARCHAR<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-255\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u53d8\u957f\u5b57\u7b26\u4e32<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TINYBLOB<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-255\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4e0d\u8d85\u8fc7 255 \u4e2a\u5b57\u7b26\u7684\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TINYTEXT<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-255\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u77ed\u6587\u672c\u5b57\u7b26\u4e32<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">BLOB<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-65 535\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4e8c\u8fdb\u5236\u5f62\u5f0f\u7684\u957f\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TEXT<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-65 535\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u957f\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">MEDIUMBLOB<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-16 777 215\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4e8c\u8fdb\u5236\u5f62\u5f0f\u7684\u4e2d\u7b49\u957f\u5ea6\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">MEDIUMTEXT<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-16 777 215\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4e2d\u7b49\u957f\u5ea6\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">LOGNGBLOB<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-4 294 967 295\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u4e8c\u8fdb\u5236\u5f62\u5f0f\u7684\u6781\u5927\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">LONGTEXT<\/div>\n<\/td>\n<td>\n<div align=\"left\">0-4 294 967 295\u5b57\u8282<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u6781\u5927\u6587\u672c\u6570\u636e<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>CHAR \u548c VARCHAR \u7c7b\u578b<\/strong><\/span><br \/>\nCHAR \u7c7b\u578b\u7528\u4e8e\u5b9a\u957f\u5b57\u7b26\u4e32\uff0c\u5e76\u4e14\u5fc5\u987b\u5728\u5706\u62ec\u53f7\u5185\u7528\u4e00\u4e2a\u5927\u5c0f\u4fee\u9970\u7b26\u6765\u5b9a\u4e49\u3002\u8fd9\u4e2a\u5927\u5c0f\u4fee\u9970\u7b26\u7684\u8303\u56f4\u4ece 0-255\u3002\u6bd4\u6307\u5b9a\u957f\u5ea6\u5927\u7684\u503c\u5c06\u88ab\u622a\u77ed\uff0c\u800c\u6bd4\u6307\u5b9a\u957f\u5ea6\u5c0f\u7684\u503c\u5c06\u4f1a\u7528\u7a7a\u683c\u4f5c\u586b\u8865\u3002<\/p>\n<p>CHAR \u7c7b\u578b\u53ef\u4ee5\u4f7f\u7528 BINARY \u4fee\u9970\u7b26\u3002\u5f53\u7528\u4e8e\u6bd4\u8f83\u8fd0\u7b97\u65f6\uff0c\u8fd9\u4e2a\u4fee\u9970\u7b26\u4f7f CHAR \u4ee5\u4e8c\u8fdb\u5236\u65b9\u5f0f\u53c2\u4e8e\u8fd0\u7b97\uff0c\u800c\u4e0d\u662f\u4ee5\u4f20\u7edf\u7684\u533a\u5206\u5927\u5c0f\u5199\u7684\u65b9\u5f0f\u3002<\/p>\n<p>CHAR \u7c7b\u578b\u7684\u4e00\u4e2a\u53d8\u4f53\u662f VARCHAR \u7c7b\u578b\u3002\u5b83\u662f\u4e00\u79cd\u53ef\u53d8\u957f\u5ea6\u7684\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u5e76\u4e14\u4e5f\u5fc5\u987b\u5e26\u6709\u4e00\u4e2a\u8303\u56f4\u5728 0-255 \u4e4b\u95f4\u7684\u6307\u793a\u5668\u3002CHAR \u548c VARCHGAR \u4e0d\u540c\u4e4b\u5904\u5728\u4e8e MuSQL \u6570\u636e\u5e93\u5904\u7406\u8fd9\u4e2a\u6307\u793a\u5668\u7684\u65b9\u5f0f\uff1aCHAR \u628a\u8fd9\u4e2a\u5927\u5c0f\u89c6\u4e3a\u503c\u7684\u5927\u5c0f\uff0c\u4e0d\u957f\u5ea6\u4e0d\u8db3\u7684\u60c5\u51b5\u4e0b\u5c31\u7528\u7a7a\u683c\u8865\u8db3\u3002\u800c VARCHAR \u7c7b\u578b\u628a\u5b83\u89c6\u4e3a\u6700\u5927\u503c\u5e76\u4e14\u53ea\u4f7f\u7528\u5b58\u50a8\u5b57\u7b26\u4e32\u5b9e\u9645\u9700\u8981\u7684\u957f\u5ea6\uff08\u589e\u52a0\u4e00\u4e2a\u989d\u5916\u5b57\u8282\u6765\u5b58\u50a8\u5b57\u7b26\u4e32\u672c\u8eab\u7684\u957f\u5ea6\uff09\u6765\u5b58\u50a8\u503c\u3002\u6240\u4ee5\u77ed\u4e8e\u6307\u793a\u5668\u957f\u5ea6\u7684 VARCHAR \u7c7b\u578b\u4e0d\u4f1a\u88ab\u7a7a\u683c\u586b\u8865\uff0c\u4f46\u957f\u4e8e\u6307\u793a\u5668\u7684\u503c\u4ecd\u7136\u4f1a\u88ab\u622a\u77ed\u3002<\/p>\n<p>\u56e0\u4e3a VARCHAR \u7c7b\u578b\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u5185\u5bb9\u52a8\u6001\u6539\u53d8\u5b58\u50a8\u503c\u7684\u957f\u5ea6\uff0c\u6240\u4ee5\u5728\u4e0d\u80fd\u786e\u5b9a\u5b57\u6bb5\u9700\u8981\u591a\u5c11\u5b57\u7b26\u65f6\u4f7f\u7528 VARCHAR \u7c7b\u578b\u53ef\u4ee5\u5927\u5927\u5730\u8282\u7ea6\u78c1\u76d8\u7a7a\u95f4\u3001\u63d0\u9ad8\u5b58\u50a8\u6548\u7387\u3002<\/p>\n<p>VARCHAR \u7c7b\u578b\u5728\u4f7f\u7528 BINARY \u4fee\u9970\u7b26\u65f6\u4e0e CHAR \u7c7b\u578b\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>TEXT \u548c BLOB \u7c7b\u578b<\/strong><\/span><br \/>\n\u5bf9\u4e8e\u5b57\u6bb5\u957f\u5ea6\u8981\u6c42\u8d85\u8fc7 255 \u4e2a\u7684\u60c5\u51b5\u4e0b\uff0cMySQL \u63d0\u4f9b\u4e86 TEXT \u548c BLOB \u4e24\u79cd\u7c7b\u578b\u3002\u6839\u636e\u5b58\u50a8\u6570\u636e\u7684\u5927\u5c0f\uff0c\u5b83\u4eec\u90fd\u6709\u4e0d\u540c\u7684\u5b50\u7c7b\u578b\u3002\u8fd9\u4e9b\u5927\u578b\u7684\u6570\u636e\u7528\u4e8e\u5b58\u50a8\u6587\u672c\u5757\u6216\u56fe\u50cf\u3001\u58f0\u97f3\u6587\u4ef6\u7b49\u4e8c\u8fdb\u5236\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>TEXT \u548c BLOB \u7c7b\u578b\u5728\u5206\u7c7b\u548c\u6bd4\u8f83\u4e0a\u5b58\u5728\u533a\u522b\u3002BLOB \u7c7b\u578b\u533a\u5206\u5927\u5c0f\u5199\uff0c\u800c TEXT \u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002\u5927\u5c0f\u4fee\u9970\u7b26\u4e0d\u7528\u4e8e\u5404\u79cd BLOB \u548c TEXT \u5b50\u7c7b\u578b\u3002\u6bd4\u6307\u5b9a\u7c7b\u578b\u652f\u6301\u7684\u6700\u5927\u8303\u56f4\u5927\u7684\u503c\u5c06\u88ab\u81ea\u52a8\u622a\u77ed\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u65e5\u671f\u548c\u65f6\u95f4\u7c7b\u578b<\/strong><\/span><br \/>\n\u5728\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7c7b\u578b\u7684\u503c\u65f6\uff0cMySQL \u5e26\u6709 5 \u4e2a\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u53ef\u4f9b\u9009\u62e9\u3002\u5b83\u4eec\u53ef\u4ee5\u88ab\u5206\u6210\u7b80\u5355\u7684\u65e5\u671f\u3001\u65f6\u95f4\u7c7b\u578b\uff0c\u548c\u6df7\u5408\u65e5\u671f\u3001\u65f6\u95f4\u7c7b\u578b\u3002\u6839\u636e\u8981\u6c42\u7684\u7cbe\u5ea6\uff0c\u5b50\u7c7b\u578b\u5728\u6bcf\u4e2a\u5206\u7c7b\u578b\u4e2d\u90fd\u53ef\u4ee5\u4f7f\u7528\uff0c\u5e76\u4e14 MySQL \u5e26\u6709\u5185\u7f6e\u529f\u80fd\u53ef\u4ee5\u628a\u591a\u6837\u5316\u7684\u8f93\u5165\u683c\u5f0f\u53d8\u4e3a\u4e00\u4e2a\u6807\u51c6\u683c\u5f0f\u3002<\/p>\n<table style=\"width: 484px; height: 509px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" align=\"center\">\n<tbody>\n<tr>\n<td>\n<div align=\"left\"><strong>\u7c7b\u578b<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u5927\u5c0f<br \/>\n(\u5b57\u8282)<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u8303\u56f4<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u683c\u5f0f<\/strong><\/div>\n<\/td>\n<td>\n<div align=\"left\"><strong>\u7528\u9014<\/strong><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">DATE<\/div>\n<\/td>\n<td>\n<div align=\"left\">3<\/div>\n<\/td>\n<td>\n<div align=\"left\">1000-01-01\/9999-12-31<\/div>\n<\/td>\n<td>\n<div align=\"left\">YYYY-MM-DD<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u65e5\u671f\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TIME<\/div>\n<\/td>\n<td>\n<div align=\"left\">3<\/div>\n<\/td>\n<td>\n<div align=\"left\">&#8216;-838:59:59&#8217;\/&#8217;838:59:59&#8217;<\/div>\n<\/td>\n<td>\n<div align=\"left\">HH:MM:SS<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u65f6\u95f4\u503c\u6216\u6301\u7eed\u65f6\u95f4<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">YEAR<\/div>\n<\/td>\n<td>\n<div align=\"left\">1<\/div>\n<\/td>\n<td>\n<div align=\"left\">1901\/2155<\/div>\n<\/td>\n<td>\n<div align=\"left\">YYYY<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u5e74\u4efd\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">DATETIME<\/div>\n<\/td>\n<td>\n<div align=\"left\">8<\/div>\n<\/td>\n<td>\n<div align=\"left\">1000-01-01 00:00:00\/9999-12-31 23:59:59<\/div>\n<\/td>\n<td>\n<div align=\"left\">YYYY-MM-DD HH:MM:SS<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u6df7\u5408\u65e5\u671f\u548c\u65f6\u95f4\u503c<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div align=\"left\">TIMESTAMP<\/div>\n<\/td>\n<td>\n<div align=\"left\">8<\/div>\n<\/td>\n<td>\n<div align=\"left\">1970-01-01 00:00:00\/2037 \u5e74\u67d0\u65f6<\/div>\n<\/td>\n<td>\n<div align=\"left\">YYYYMMDD HHMMSS<\/div>\n<\/td>\n<td>\n<div align=\"left\">\u6df7\u5408\u65e5\u671f\u548c\u65f6\u95f4\u503c\uff0c\u65f6\u95f4\u6233<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>DATE\u3001TIME \u548c TEAR \u7c7b\u578b<\/strong><\/span><br \/>\nMySQL \u7528 DATE \u548c TEAR \u7c7b\u578b\u5b58\u50a8\u7b80\u5355\u7684\u65e5\u671f\u503c\uff0c\u4f7f\u7528 TIME \u7c7b\u578b\u5b58\u50a8\u65f6\u95f4\u503c\u3002\u8fd9\u4e9b\u7c7b\u578b\u53ef\u4ee5\u63cf\u8ff0\u4e3a\u5b57\u7b26\u4e32\u6216\u4e0d\u5e26\u5206\u9694\u7b26\u7684\u6574\u6570\u5e8f\u5217\u3002\u5982\u679c\u63cf\u8ff0\u4e3a\u5b57\u7b26\u4e32\uff0cDATE \u7c7b\u578b\u7684\u503c\u5e94\u8be5\u4f7f\u7528\u8fde\u5b57\u53f7\u4f5c\u4e3a\u5206\u9694\u7b26\u5206\u5f00\uff0c\u800c TIME \u7c7b\u578b\u7684\u503c\u5e94\u8be5\u4f7f\u7528\u5192\u53f7\u4f5c\u4e3a\u5206\u9694\u7b26\u5206\u5f00\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6ca1\u6709\u5192\u53f7\u5206\u9694\u7b26\u7684 TIME \u7c7b\u578b\u503c\uff0c\u5c06\u4f1a\u88ab MySQL \u7406\u89e3\u4e3a\u6301\u7eed\u7684\u65f6\u95f4\uff0c\u800c\u4e0d\u662f\u65f6\u95f4\u6233\u3002<\/p>\n<p>MySQL \u8fd8\u5bf9\u65e5\u671f\u7684\u5e74\u4efd\u4e2d\u7684\u4e24\u4e2a\u6570\u5b57\u7684\u503c\uff0c\u6216\u662f SQL \u8bed\u53e5\u4e2d\u4e3a TEAR \u7c7b\u578b\u8f93\u5165\u7684\u4e24\u4e2a\u6570\u5b57\u8fdb\u884c\u6700\u5927\u9650\u5ea6\u7684\u901a\u8bd1\u3002\u56e0\u4e3a\u6240\u6709 TEAR \u7c7b\u578b\u7684\u503c\u5fc5\u987b\u7528 4 \u4e2a\u6570\u5b57\u5b58\u50a8\u3002MySQL \u8bd5\u56fe\u5c06 2 \u4e2a\u6570\u5b57\u7684\u5e74\u4efd\u8f6c\u6362\u4e3a 4 \u4e2a\u6570\u5b57\u7684\u503c\u3002\u628a\u5728 00-69 \u8303\u56f4\u5185\u7684\u503c\u8f6c\u6362\u5230 2000-2069 \u8303\u56f4\u5185\u3002\u628a 70-99 \u8303\u56f4\u5185\u7684\u503c\u8f6c\u6362\u5230 1970-1979 \u4e4b\u5185\u3002\u5982\u679c MySQL \u81ea\u52a8\u8f6c\u6362\u540e\u7684\u503c\u5e76\u4e0d\u7b26\u5408\u6211\u4eec\u7684\u9700\u8981\uff0c\u8bf7\u8f93\u5165 4 \u4e2a\u6570\u5b57\u8868\u793a\u7684\u5e74\u4efd\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>DATEYIME \u548c TIMESTAMP \u7c7b\u578b<\/strong><\/span><br \/>\n\u9664\u4e86\u65e5\u671f\u548c\u65f6\u95f4\u6570\u636e\u7c7b\u578b\uff0cMySQL \u8fd8\u652f\u6301 DATEYIME \u548c TIMESTAMP \u8fd9\u4e24\u79cd\u6df7\u5408\u7c7b\u578b\u3002\u5b83\u4eec\u53ef\u4ee5\u628a\u65e5\u671f\u548c\u65f6\u95f4\u4f5c\u4e3a\u5355\u4e2a\u7684\u503c\u8fdb\u884c\u5b58\u50a8\u3002\u8fd9\u4e24\u79cd\u7c7b\u578b\u901a\u5e38\u7528\u4e8e\u81ea\u52a8\u5b58\u50a8\u5305\u542b\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684\u65f6\u95f4\u6233\uff0c\u5e76\u53ef\u5728\u9700\u8981\u6267\u884c\u5927\u91cf\u6570\u636e\u5e93\u4e8b\u52a1\u548c\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u8c03\u8bd5\u548c\u5ba1\u67e5\u7528\u9014\u7684\u5ba1\u8ba1\u8ddf\u8e2a\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u53d1\u6325\u826f\u597d\u4f5c\u7528\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u5bf9 TIMESTAMP \u7c7b\u578b\u7684\u5b57\u6bb5\u6ca1\u6709\u660e\u786e\u8d4b\u503c\uff0c\u6216\u662f\u88ab\u8d4b\u4e0e\u4e86 null \u503c\u3002MySQL \u4f1a\u81ea\u52a8\u4f7f\u7528\u7cfb\u7edf\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u6765\u586b\u5145\u5b83\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u590d\u5408\u7c7b\u578b<\/strong><\/span><br \/>\nMySQL \u8fd8\u652f\u6301\u4e24\u79cd\u590d\u5408\u6570\u636e\u7c7b\u578b ENUM \u548c SET\uff0c\u5b83\u4eec\u6269\u5c55\u4e86 SQL \u89c4\u8303\u3002\u867d\u7136\u8fd9\u4e9b\u7c7b\u578b\u5728\u6280\u672f\u4e0a\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u4f46\u662f\u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u3002\u4e00\u4e2a ENUM \u7c7b\u578b\u53ea\u5141\u8bb8\u4ece\u4e00\u4e2a\u96c6\u5408\u4e2d\u53d6\u5f97\u4e00\u4e2a\u503c\uff1b\u800c SET \u7c7b\u578b\u5141\u8bb8\u4ece\u4e00\u4e2a\u96c6\u5408\u4e2d\u53d6\u5f97\u4efb\u610f\u591a\u4e2a\u503c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>ENUM \u7c7b\u578b<\/strong><\/span><br \/>\nENUM \u7c7b\u578b\u56e0\u4e3a\u53ea\u5141\u8bb8\u5728\u96c6\u5408\u4e2d\u53d6\u5f97\u4e00\u4e2a\u503c\uff0c\u6709\u70b9\u7c7b\u4f3c\u4e8e\u5355\u9009\u9879\u3002\u5728\u5904\u7406\u76f8\u4e92\u6392\u62c6\u7684\u6570\u636e\u65f6\u5bb9\u6613\u8ba9\u4eba\u7406\u89e3\uff0c\u6bd4\u5982\u4eba\u7c7b\u7684\u6027\u522b\u3002ENUM \u7c7b\u578b\u5b57\u6bb5\u53ef\u4ee5\u4ece\u96c6\u5408\u4e2d\u53d6\u5f97\u4e00\u4e2a\u503c\u6216\u4f7f\u7528 null \u503c\uff0c\u9664\u6b64\u4e4b\u5916\u7684\u8f93\u5165\u5c06\u4f1a\u4f7f MySQL \u5728\u8fd9\u4e2a\u5b57\u6bb5\u4e2d\u63d2\u5165\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\u3002\u53e6\u5916\u5982\u679c\u63d2\u5165\u503c\u7684\u5927\u5c0f\u5199\u4e0e\u96c6\u5408\u4e2d\u503c\u7684\u5927\u5c0f\u5199\u4e0d\u5339\u914d\uff0cMySQL \u4f1a\u81ea\u52a8\u4f7f\u7528\u63d2\u5165\u503c\u7684\u5927\u5c0f\u5199\u8f6c\u6362\u6210\u4e0e\u96c6\u5408\u4e2d\u5927\u5c0f\u5199\u4e00\u81f4\u7684\u503c\u3002<\/p>\n<p>ENUM \u7c7b\u578b\u5728\u7cfb\u7edf\u5185\u90e8\u53ef\u4ee5\u5b58\u50a8\u4e3a\u6570\u5b57\uff0c\u5e76\u4e14\u4ece 1 \u5f00\u59cb\u7528\u6570\u5b57\u505a\u7d22\u5f15\u3002\u4e00\u4e2a ENUM \u7c7b\u578b\u6700\u591a\u53ef\u4ee5\u5305\u542b 65536 \u4e2a\u5143\u7d20\uff0c\u5176\u4e2d\u4e00\u4e2a\u5143\u7d20\u88ab MySQL \u4fdd\u7559\uff0c\u7528\u6765\u5b58\u50a8\u9519\u8bef\u4fe1\u606f\uff0c\u8fd9\u4e2a\u9519\u8bef\u503c\u7528\u7d22\u5f15 0 \u6216\u8005\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<p>MySQL \u8ba4\u4e3a ENUM \u7c7b\u578b\u96c6\u5408\u4e2d\u51fa\u73b0\u7684\u503c\u662f\u5408\u6cd5\u8f93\u5165\uff0c\u9664\u6b64\u4e4b\u5916\u5176\u5b83\u4efb\u4f55\u8f93\u5165\u90fd\u5c06\u5931\u8d25\u3002\u8fd9\u8bf4\u660e\u901a\u8fc7\u641c\u7d22\u5305\u542b\u7a7a\u5b57\u7b26\u4e32\u6216\u5bf9\u5e94\u6570\u5b57\u7d22\u5f15\u4e3a 0 \u7684\u884c\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u627e\u5230\u9519\u8bef\u8bb0\u5f55\u7684\u4f4d\u7f6e\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>SET \u7c7b\u578b<\/strong><\/span><br \/>\nSET \u7c7b\u578b\u4e0e ENUM \u7c7b\u578b\u76f8\u4f3c\u4f46\u4e0d\u76f8\u540c\u3002SET \u7c7b\u578b\u53ef\u4ee5\u4ece\u9884\u5b9a\u4e49\u7684\u96c6\u5408\u4e2d\u53d6\u5f97\u4efb\u610f\u6570\u91cf\u7684\u503c\u3002\u5e76\u4e14\u4e0e ENUM \u7c7b\u578b\u76f8\u540c\u7684\u662f\u4efb\u4f55\u8bd5\u56fe\u5728 SET \u7c7b\u578b\u5b57\u6bb5\u4e2d\u63d2\u5165\u975e\u9884\u5b9a\u4e49\u7684\u503c\u90fd\u4f1a\u4f7f MySQL \u63d2\u5165\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\u3002\u5982\u679c\u63d2\u5165\u4e00\u4e2a\u5373\u6709\u5408\u6cd5\u7684\u5143\u7d20\u53c8\u6709\u975e\u6cd5\u7684\u5143\u7d20\u7684\u8bb0\u5f55\uff0cMySQL \u5c06\u4f1a\u4fdd\u7559\u5408\u6cd5\u7684\u5143\u7d20\uff0c\u9664\u53bb\u975e\u6cd5\u7684\u5143\u7d20\u3002<\/p>\n<p>\u4e00\u4e2a SET \u7c7b\u578b\u6700\u591a\u53ef\u4ee5\u5305\u542b 64 \u9879\u5143\u7d20\u3002\u5728 SET \u5143\u7d20\u4e2d\u503c\u88ab\u5b58\u50a8\u4e3a\u4e00\u4e2a\u5206\u79bb\u7684\u201c\u4f4d\u201d\u5e8f\u5217\uff0c\u8fd9\u4e9b\u201c\u4f4d\u201d\u8868\u793a\u4e0e\u5b83\u76f8\u5bf9\u5e94\u7684\u5143\u7d20\u3002\u201c\u4f4d\u201d\u662f\u521b\u5efa\u6709\u5e8f\u5143\u7d20\u96c6\u5408\u7684\u4e00\u79cd\u7b80\u5355\u800c\u6709\u6548\u7684\u65b9\u5f0f\u3002\u5e76\u4e14\u5b83\u8fd8\u53bb\u9664\u4e86\u91cd\u590d\u7684\u5143\u7d20\uff0c\u6240\u4ee5 SET \u7c7b\u578b\u4e2d\u4e0d\u53ef\u80fd\u5305\u542b\u4e24\u4e2a\u76f8\u540c\u7684\u5143\u7d20\u3002<\/p>\n<p>\u5e0c\u671b\u4ece SET \u7c7b\u578b\u5b57\u6bb5\u4e2d\u627e\u51fa\u975e\u6cd5\u7684\u8bb0\u5f55\u53ea\u9700\u67e5\u627e\u5305\u542b\u7a7a\u5b57\u7b26\u4e32\u6216\u4e8c\u8fdb\u5236\u503c\u4e3a 0 \u7684\u884c\u3002<\/p>\n<p><a href=\"http:\/\/www.360doc.com\/content\/11\/0508\/10\/4873696_115188051.shtml\" target=\"_blank\">http:\/\/www.360doc.com\/content\/11\/0508\/10\/4873696_115188051.shtml<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u503c\u7c7b\u578b MySQL \u7684\u6570\u503c\u6570\u636e\u7c7b\u578b\u53ef\u4ee5\u5927\u81f4\u5212\u5206\u4e3a\u4e24\u4e2a\u7c7b\u522b\uff0c\u4e00\u4e2a\u662f\u6574\u6570\uff0c\u53e6\u4e00\u4e2a\u662f\u6d6e\u70b9\u6570\u6216\u5c0f\u6570\u3002\u8bb8\u591a\u4e0d\u540c\u7684\u5b50\u7c7b\u578b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-3145","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3145"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3145\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}