Discuss / SQL / between...and

between...and

Topic source

我记得between..and 是左闭右开的啊

廖雪峰

#3 Created at ... [Delete] [Delete and Lock User]

`expr` BETWEEN `min` AND `max`

If expr is greater than or equal to min and expr is less than or equal to maxBETWEEN returns 1, otherwise it returns 0. This is equivalent to the expression (`min` <= `expr` AND `expr` <= `max`)

看最后一句

白露

#4 Created at ... [Delete] [Delete and Lock User]

我也记得是左闭右开的区间,难道我的记忆混乱了吗


  • 1

Reply