最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
谈谈sql查询的between
时间:2008-01-11 编辑:简简单单 来源:一聚教程网
作者:啊亮
发表于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 后面是高值!
发表于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 后面是高值!
-
下一个: 一个阿拉伯数字转中文数字的函数
相关文章
- sql server实现递归查询的方法示例 06-23
- SQL查询方法总结 06-06
- SQL查询中需要使用别名问题 03-25
- msSQL2005查询及补丁的版本号的方法 07-13
- Symfony2中SQL UNION查询的例子 05-07
- SQL Server子查询运算学习总结教程 12-16