/*年龄十岁以下的*/
select class,name,birth
from class
where age<10;
/*年龄10-20岁的*/
select class,name,birth
from class
where age between 10 and 20;
/*年龄20-30岁的*/
select class,name,birth
from class
where age between 20 and 30;
/*年龄30岁以上的*/
select class,name,birth
from class
where age>30;
select class,name,birth
from class
where age<10;
/*年龄10-20岁的*/
select class,name,birth
from class
where age between 10 and 20;
/*年龄20-30岁的*/
select class,name,birth
from class
where age between 20 and 30;
/*年龄30岁以上的*/
select class,name,birth
from class
where age>30;
解决方案 »
- delphi 如何实现运行时窗体设计?
- 如何把DBGrid导出为csv文档?
- delphil中怎么给外部应用程序传递参数?
- 问一个有关delphi操作sql2000数据库的小问题,请大侠们帮帮忙,在线等!!!
- 非法的精确度数值?
- 我用D5做了一个含有自动完成功能的combobox控件,点击listbox中的候选项时报错,代码如下:
- ado连接远程oracle服务器.怎么连?
- 关于网络的一点问题!
- 关于MSMQ的问题,WIN98下用MSMQ异步读取指定队列的消息,为什么不行?
- 怎样才可以实现这样的delphi编程?
- **********如果我从来没有接触过COM技术,该从何学起?大家给点建议吧************
- 怎么样才能将DBGrid的颜色隔一行相同啊,就像这个论坛一样。
select * from table1 B where 出生年月 between 10and 20,
select * from table1 C where 出生年月 between 20 and 30,
select * From Table1 D where 出生年月 >30
where A.出生年月<10;