{"id":546,"date":"2023-05-11T12:16:27","date_gmt":"2023-05-29T11:12:21","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/"},"modified":"2025-08-02T17:22:34","modified_gmt":"2025-08-02T09:22:34","slug":"sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/","title":{"rendered":"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b"},"content":{"rendered":"<p>SQL\u7684BETWEEN\u8fd0\u7b97\u7b26\u4e0eWHERE\u5b50\u53e5\u4e00\u8d77\u4f7f\u7528\uff0c\u7528\u4e8e\u9009\u62e9\u6307\u5b9a\u8303\u56f4\u5185\u7684\u6570\u636e\u3002\u8fd9\u4e9b\u503c\u53ef\u4ee5\u662f\u6570\u5b57\u3001\u6587\u672c\u548c\u65e5\u671f\u3002SQL BETWEEN\u8fd0\u7b97\u7b26\u4e0eSQL IN\u8fd0\u7b97\u7b26\u7c7b\u4f3c\uff0c\u4f46\u5b83\u662f\u6309\u987a\u5e8f\u4f7f\u7528\u7684\u3002BETWEEN\u8303\u56f4\u5b9a\u4e49\u7684\u503c\u662f\u5305\u542b\u6027\u7684\uff0c\u5373\u8303\u56f4\u5185\u63d0\u5230\u7684\u503c\u5305\u62ec\u5f00\u59cb\u503c\u548c\u7ed3\u675f\u503c\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bbaBETWEEN\u8fd0\u7b97\u7b26\u3002\u5982\u524d\u6240\u8ff0\uff0cBETWEEN\u8fd0\u7b97\u7b26\u53ef\u4ee5\u4e0e\u6570\u5b57\u3001\u6587\u672c\u548c\u65e5\u671f\u4e00\u8d77\u4f7f\u7528\u3002\u6211\u4eec\u5c06\u5728\u4e0b\u9762\u8be6\u7ec6\u8ba8\u8bba\u8fd9\u4e09\u79cd\u60c5\u51b5\u3002<\/p>\n<h2>SQL BETWEEN \u8bed\u6cd5<\/h2>\n<pre class=\"post-pre\"><code>SELECT \u5217\u540d FROM \u8868\u540d WHERE \u5217\u540d BETWEEN \u503c1 AND \u503c2;\r\n<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u8bed\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u503c\u5b9a\u4e49\u4e3aBETWEEN\u8fd0\u7b97\u7b26\u7684\u4e00\u90e8\u5206\u3002\u6b64\u5916\uff0c\u65e0\u8bba\u4f7f\u7528\u6570\u503c\u3001\u6587\u672c\u503c\u8fd8\u662f\u65e5\u671f\u503c\uff0c\u4e0a\u8ff0\u8bed\u6cd5\u90fd\u4fdd\u6301\u4e0d\u53d8\u3002<\/p>\n<h3>SQL BETWEEN \u64cd\u4f5c\u7b26\u7528\u4e8e\u6570\u5b57\u503c<\/h3>\n<p>\u901a\u8fc7\u4e00\u4e9b\u6570\u503c\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u66f4\u8be6\u7ec6\u5730\u7406\u89e3\u4e0a\u8ff0\u8bed\u6cd5\u3002\u8ba9\u6211\u4eec\u4ee5\u4ee5\u4e0b\u5b66\u751f\u8868\u4e3a\u4f8b\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u53f7<\/th>\n<th>\u5b66\u751f\u59d3\u540d<\/th>\n<th>\u5b66\u751f\u6027\u522b<\/th>\n<th>\u5b66\u751f\u5e74\u9f84<\/th>\n<th>\u5b66\u751f\u6210\u7ee9<\/th>\n<th>\u5165\u5b66\u65e5\u671f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>George<\/td>\n<td>M<\/td>\n<td>14<\/td>\n<td>85<\/td>\n<td>2018-01-01<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Monica<\/td>\n<td>F<\/td>\n<td>12<\/td>\n<td>88<\/td>\n<td>2018-01-31<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Jessica<\/td>\n<td>F<\/td>\n<td>13<\/td>\n<td>84<\/td>\n<td>2018-01-15<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Tom<\/td>\n<td>M<\/td>\n<td>11<\/td>\n<td>78<\/td>\n<td>2017-12-15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u6211\u6b63\u5728\u4f7f\u7528MySQL\u6570\u636e\u5e93\uff0c\u4ee5\u4e0b\u662f\u521b\u5efa\u5b66\u751f\u8868\u5e76\u63d2\u5165\u793a\u4f8b\u8bb0\u5f55\u7684\u811a\u672c\uff1a<\/p>\n<pre class=\"post-pre\"><code>CREATE TABLE `Student` (\r\n  `rollno` int(11) unsigned NOT NULL,\r\n  `studentname` varchar(20) DEFAULT NULL,\r\n  `studentgender` varchar(5) DEFAULT NULL,\r\n  `studentage` int(3) DEFAULT NULL,\r\n  `studentpercent` int(3) DEFAULT NULL,\r\n  `admissiondate` date DEFAULT NULL,\r\n  PRIMARY KEY (`rollno`)\r\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\r\n\r\nINSERT INTO `Student` (`rollno`, `studentname`, `studentgender`, `studentage`, `studentpercent`, `admissiondate`)\r\nVALUES\r\n\t(1, 'George', 'M', 14, 85, '2018-01-01'),\r\n\t(2, 'Monica', 'F', 12, 88, '2018-01-31'),\r\n\t(3, 'Jessica', 'F', 13, 84, '2018-01-15'),\r\n\t(4, 'Tom', 'M', 11, 78, '2017-12-15');\r\n<\/code><\/pre>\n<p>\u573a\u666f\uff1a\u67e5\u8be2\u5e74\u9f84\u572811\u523013\u5c81\u4e4b\u95f4\u7684\u5b66\u751f\u7684\u767e\u5206\u6bd4\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT StudentPercent FROM Student WHERE StudentAge BETWEEN 11 AND 13;\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u751f\u6210\u7ee9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>88<\/td>\n<\/tr>\n<tr>\n<td>84<\/td>\n<\/tr>\n<tr>\n<td>78<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/13-0.png\" alt=\"SQL Between Clause example\" \/><\/div>\n<h3>\u6570\u5b57\u503c\u7684SQL NOT BETWEEN\u64cd\u4f5c\u7b26<\/h3>\n<p>SQL NOT BETWEEN\u8fd0\u7b97\u7b26\u7528\u4e8e\u83b7\u53d6\u7ed3\u679c\u96c6\u4e2d\u4e0d\u5728BETWEEN\u8fd0\u7b97\u7b26\u6307\u5b9a\u8303\u56f4\u5185\u7684\u503c\u3002\u573a\u666f\uff1a\u67e5\u8be2\u5e74\u9f84\u4e0d\u572811\u523013\u5c81\u4e4b\u95f4\u7684\u5b66\u751f\u7684\u767e\u5206\u6bd4\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT StudentPercent FROM Student WHERE StudentAge NOT BETWEEN 11 AND 13;\r\n<\/code><\/pre>\n<p>\u7ed3\u679c\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u751f\u6210\u7ee9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>85<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/19-0.png\" alt=\"sql not between example\" \/><\/div>\n<h3>SQL BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u6587\u672c\u503c<\/h3>\n<p>\u573a\u666f\uff1a\u67e5\u8be2\u5b66\u53f7(RollNo)\u3001\u5b66\u751f\u59d3\u540d(StudentName)\u548c\u5b66\u751f\u5e74\u9f84(StudentAge)\uff0c\u5176\u4e2d\u5b66\u751f\u59d3\u540d\u5728George\u548cJessica\u4e4b\u95f4\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT RollNo, StudentName, StudentAge FROM Student WHERE StudentName BETWEEN 'George' AND 'Jessica';\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u53f7<\/th>\n<th>\u5b66\u751f\u59d3\u540d<\/th>\n<th>\u5b66\u751f\u5e74\u9f84<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>George<\/td>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Jessica<\/td>\n<td>13<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>SQL NOT BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u6587\u672c\u503c<\/h3>\n<p>\u573a\u666f\uff1a\u67e5\u8be2\u5b66\u53f7(RollNo)\u3001\u5b66\u751f\u59d3\u540d(StudentName)\u548c\u5b66\u751f\u5e74\u9f84(StudentAge)\uff0c\u5176\u4e2d\u5b66\u751f\u59d3\u540d\u4e0d\u5728George\u548cJessica\u4e4b\u95f4\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT RollNo, StudentName, StudentAge FROM Student WHERE StudentName NOT BETWEEN 'George' AND 'Jessica';\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u53f7<\/th>\n<th>\u5b66\u751f\u59d3\u540d<\/th>\n<th>\u5b66\u751f\u5e74\u9f84<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2<\/td>\n<td>Monica<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Tom<\/td>\n<td>11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>SQL BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u65e5\u671f\u503c<\/h3>\n<p>\u573a\u666f\uff1a\u67e5\u8be2\u5165\u5b66\u65e5\u671f\u57282018\u5e741\u67081\u65e5\u81f32018\u5e741\u670831\u65e5\u4e4b\u95f4\u7684\u5b66\u751f\u5e74\u9f84\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT StudentAge FROM Student WHERE admissiondate BETWEEN str_to_date('2018-01-01', '%Y-%m-%d') AND '2018-01-31';\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u751f\u5e74\u9f84<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/35-0.png\" alt=\"SQL Between Date Example\" \/><\/div>\n<h3>SQL NOT BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u65e5\u671f\u503c<\/h3>\n<p>\u573a\u666f\uff1a\u67e5\u8be2\u4e0d\u57282018\u5e741\u67081\u65e5\u81f32018\u5e741\u670831\u65e5\u671f\u95f4\u5165\u5b66\u7684\u5b66\u751f\u7684\u5e74\u9f84\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT StudentAge FROM Student WHERE admissiondate NOT BETWEEN str_to_date('2018-01-01', '%Y-%m-%d') AND '2018-01-31';\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>\u5b66\u751f\u5e74\u9f84<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u591a\u4e2aBETWEEN\u64cd\u4f5c\u7b26<\/h2>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2aBETWEEN\u8fd0\u7b97\u7b26\u3002\u5176\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre class=\"post-pre\"><code>SELECT \u5217\u540d FROM \u8868\u540d WHERE \r\n\u5217\u540d BETWEEN \u503c1 AND \u503c2 \r\nAND \r\n\u5217\u540d BETWEEN \u503c3 AND \u503c4 \r\n... \r\nAND \r\n\u5217\u540d BETWEEN \u503cN AND \u503cM;\r\n<\/code><\/pre>\n<p>\u4f7f\u7528\u4e0a\u8ff0\u8bed\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u7ec4\u5408\u591a\u4e2aBETWEEN\u8fd0\u7b97\u7b26\u3002\u573a\u666f\uff1a\u67e5\u8be2\u5e74\u9f84\u572810\u523013\u5c81\u4e4b\u95f4\uff0c\u4e14\u6210\u7ee9\u572880\u81f385\u4e4b\u95f4\u7684\u5b66\u751f\u59d3\u540d\u3002<\/p>\n<pre class=\"post-pre\"><code>SELECT StudentName FROM Student WHERE \r\nStudentAge BETWEEN 10 AND 13 \r\nAND\r\nStudentPercent BETWEEN 80 AND 85;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/46-0.png\" alt=\"SQL Multiple Between Operators\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u7684BETWEEN\u8fd0\u7b97\u7b26\u4e0eWHERE\u5b50\u53e5\u4e00\u8d77\u4f7f\u7528\uff0c\u7528\u4e8e\u9009\u62e9\u6307\u5b9a\u8303\u56f4\u5185\u7684\u6570\u636e\u3002\u8fd9\u4e9b\u503c\u53ef\u4ee5\u662f\u6570\u5b57\u3001\u6587\u672c\u548c\u65e5\u671f\u3002 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1604,1605,1603,1606,1145],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mysql","tag-not-between","tag-sql-between","tag-sql","tag-1145"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-\u662f\u7528\u4e8e\u5728\u6307\u5b9a\u8303\u56f4\u5185\u68c0\u7d22\u6570\u636e\u7684\u6761\u4ef6\u8bed\u53e5\u3002mysql-between-dat\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-\u662f\u7528\u4e8e\u5728\u6307\u5b9a\u8303\u56f4\u5185\u68c0\u7d22\u6570\u636e\u7684\u6761\u4ef6\u8bed\u53e5\u3002mysql-between-dat\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-29T11:12:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-02T09:22:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/13-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/\",\"name\":\"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-29T11:12:21+00:00\",\"dateModified\":\"2025-08-02T09:22:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"description\":\"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b - Blog - Silicon Cloud","description":"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-\u662f\u7528\u4e8e\u5728\u6307\u5b9a\u8303\u56f4\u5185\u68c0\u7d22\u6570\u636e\u7684\u6761\u4ef6\u8bed\u53e5\u3002mysql-between-dat\/","og_locale":"zh_CN","og_type":"article","og_title":"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b","og_description":"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-\u662f\u7528\u4e8e\u5728\u6307\u5b9a\u8303\u56f4\u5185\u68c0\u7d22\u6570\u636e\u7684\u6761\u4ef6\u8bed\u53e5\u3002mysql-between-dat\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-29T11:12:21+00:00","article_modified_time":"2025-08-02T09:22:34+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656474faa4b2f92e6c729e1b\/13-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/","name":"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-29T11:12:21+00:00","dateModified":"2025-08-02T09:22:34+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"description":"\u6df1\u5165\u4e86\u89e3SQL Between\u6761\u4ef6\u8bed\u53e5\u7684\u7528\u6cd5\uff0c\u5305\u62ecMySQL Between Dates\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u6280\u5de7\u548cNot Between\u64cd\u4f5c\u5b9e\u4f8b\u3002\u672c\u6587\u63d0\u4f9b\u8be6\u7ec6\u7684\u8bed\u6cd5\u8bf4\u660e\u3001\u5b9e\u7528\u793a\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1SQL\u8303\u56f4\u67e5\u8be2\u7684\u6838\u5fc3\u6280\u80fd\uff0c\u63d0\u5347\u6570\u636e\u5e93\u67e5\u8be2\u6548\u7387\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"SQL Between\u7528\u6cd5\u8be6\u89e3\uff1aMySQL\u65e5\u671f\u8303\u56f4\u67e5\u8be2\u4e0eNot Between\u5b9e\u4f8b\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/sql-between-%e6%98%af%e7%94%a8%e4%ba%8e%e5%9c%a8%e6%8c%87%e5%ae%9a%e8%8c%83%e5%9b%b4%e5%86%85%e6%a3%80%e7%b4%a2%e6%95%b0%e6%8d%ae%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%af%ad%e5%8f%a5%e3%80%82mysql-between-dat\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":4,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":110242,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/546\/revisions\/110242"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}