您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

谈谈sql查询的between_PHP教程

2025/6/8 7:56:02发布18次查看
作者:啊亮
发表于asp地带,2000-11-25 21:42
例子1:求年龄在20与22岁之间(包括20 和 22)的学生的学号和年龄
select number,age
from s
where age between 20 and 22
例子2:求年龄不在20与22岁之间的学生的学号和年龄
select number,age
from s
where age not between 20 and 22
注意:between后面是低值,and 后面是高值!
http://www.bkjia.com/phpjc/631220.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/631220.htmltecharticle作者:啊亮 发表于asp地带,2000-11-25 21:42 例子1:求年龄在20与22岁之间(包括20 和 22)的学生的学号和年龄 select number,age from s where age betwe...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product