求一列的最小值

511214 2004-11-19 04:10:19
我想查询access中某一项的最小值,用哪个函数阿,或是其他的方法
...全文
153 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
kelly_1127 2004-11-20
  • 打赏
  • 举报
回复
学习
511214 2004-11-20
  • 打赏
  • 举报
回复
usedTime列默认值为0,我的意思是说,我想查找一个人的姓名,而它的usedTime 列的值为最小值并大于0
另外:我是用朋友的用户名登陆并且提问,他不在!
datamoon 2004-11-20
  • 打赏
  • 举报
回复
select class from stuin where usedTime>0 order by usedtime


直接这句就可以了。麻烦的很哦。
heyixiang 2004-11-19
  • 打赏
  • 举报
回复
怀疑楼主的4条内裤,难道是用高人的马甲?

select class from stuin where usedTime>0 order by usedtime

或者

select class from stuin where usedtime>0 and usedtime=(select min(usedtime) from stuin)
devin--- 2004-11-19
  • 打赏
  • 举报
回复
select min(列名) as min from 表名

lwlmaomao 2004-11-19
  • 打赏
  • 举报
回复
1、如果你想取一表中的某一字段的最小值:
select min(field) as minValue from tableName

2、如果想取某每一分类的最少值:
select min(field) as minValue from tableName Group By 分类字段
wujoe_00 2004-11-19
  • 打赏
  • 举报
回复
select top 1 class where usedTime>0 from stuin order by usedtime
wujoe_00 2004-11-19
  • 打赏
  • 举报
回复
select class where usedTime>0 from stuin order by usedtime
rainhow 2004-11-19
  • 打赏
  • 举报
回复
select min() from table
fog 2004-11-19
  • 打赏
  • 举报
回复
你先查出最小值,再查询别的啊
leo963258 2004-11-19
  • 打赏
  • 举报
回复
javascript 里
Math.min(参数1,参数2)
ygjwjj 2004-11-19
  • 打赏
  • 举报
回复
select Min(列名) from 表 group by 列名
hj3793 2004-11-19
  • 打赏
  • 举报
回复
select class where usedtime>0 and usedtime in(select min(usedtime) from class) from stuin
liuyangxuan 2004-11-19
  • 打赏
  • 举报
回复
min()
511214 2004-11-19
  • 打赏
  • 举报
回复
我是想将最小值作为查询的条件

select class where usedTime>0 and 为最小值 from stuin
jiank 2004-11-19
  • 打赏
  • 举报
回复
select Min(列名) from 表
a040liutao 2004-11-19
  • 打赏
  • 举报
回复
select min(列名) from 表
zlj113 2004-11-19
  • 打赏
  • 举报
回复
最大为:max(列名)
zlj113 2004-11-19
  • 打赏
  • 举报
回复
min(列名)

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧