Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 两个值之间的SQL标准_Mysql_Sql_Sql Standards - Fatal编程技术网

Mysql 两个值之间的SQL标准

Mysql 两个值之间的SQL标准,mysql,sql,sql-standards,Mysql,Sql,Sql Standards,我想知道,当我们使用'between'时,SQL标准和MySQL有什么区别吗。 在SQL标准中更准确地说,如果我这样做: A between 1 and 10 是否等于: 1 <= A and A <= 10 -- or 1 < A ans 1 < 10 1From expr在最小值和最大值之间 如果expr大于或等于min且expr小于或等于 到max,在返回1之间,否则返回0。这相当于 至表达(min expr在最小值和最大值之间 如果expr大于或等于min且

我想知道,当我们使用'between'时,SQL标准和MySQL有什么区别吗。 在SQL标准中更准确地说,如果我这样做:

A between 1 and 10 
是否等于:

1 <= A and A <= 10
-- or
1 < A ans 1 < 10
1From

expr在最小值和最大值之间

如果expr大于或等于min且expr小于或等于 到max,在返回1之间,否则返回0。这相当于 至表达(min

expr在最小值和最大值之间

如果expr大于或等于min且expr小于或等于 到max,在返回1之间,否则返回0。这是等效的
到MySQL中的表达式(min

让“employee\u tbl”表包含员工姓名、每日键入页面列

+------+------+------------+--------------------+
|id |姓名|工作|日期|每日|打字|页面|
+------+------+------------+--------------------+
|1 | John | 2007-01-24 | 250|
|2 | Ram | 2007-05-27 | 220|
|杰克2007-05-06 170|
|3 | Jack | 2007-04-06 | 100|
|吉尔2007-04-06 220|
|5 | Zara | 2007-06-06 | 300|
|5 | Zara | 2007-02-06 | 350|

+------+------+------------+--------------------+
在MySQL中

让“employee\u tbl”表包含员工姓名、每日键入页面列

+------+------+------------+--------------------+
|id |姓名|工作|日期|每日|打字|页面|
+------+------+------------+--------------------+
|1 | John | 2007-01-24 | 250|
|2 | Ram | 2007-05-27 | 220|
|杰克2007-05-06 170|
|3 | Jack | 2007-04-06 | 100|
|吉尔2007-04-06 220|
|5 | Zara | 2007-06-06 | 300|
|5 | Zara | 2007-02-06 | 350|
+------+------+------------+--------------------+
1
1