数据库查询问题 如何查询数据库中一个时间列的最小值,以及查出这个列所在行的其他列的值? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select min(时间列) from 表select * from 表 A where not exists(select 0 from 表 B where A.时间列>B.时间列)--或者select * from 表 where 时间列=(select min(时间列) from 表) 慢了,楼上正解select * from tb1 where 时间列=(select min(时间列) from tb1) select * from 表 where 时间列=(select min(时间列) from 表) select top 1 * from 表 order by 时间列 取值方法:http://topic.csdn.net/u/20080626/00/43d0d10c-28f1-418d-a05b-663880da278a.html select top 1 * from 表 order by 时间列 select min(时间列) from 表 select * from 表 A where not exists(select 0 from 表 B where A.时间列>B.时间列) --或者 select * from 表 where 时间列=(select min(时间列) from 表) 使用insert语句时,什么样的数据要加引号,什么样的数据不用加引号? 什么在企业管理器的表中输入null,不能实现空值?(该属性已经允许为空) 求一个sql语句? 新手誓言 急~~~~~数据库丢失数据????.在线等~~~~~~~~~~~~另开贴加分的 关于怎么导入数据的问题 SQL出错!!!!!!!! 关于SQL SERVER 2000 里两表之间级联更新的问题?? 我把网络密码改掉了,就连不上sql了,该咋办呢? 请问:我的数据索引2坏了,怎么才能修复它啊?? 请教检查日期连续、遗漏及重叠的代码 存储过程是这样的,但是没有返回值,不知道怎么错了?
select * from 表 A where not exists(select 0 from 表 B where A.时间列>B.时间列)
--或者
select * from 表 where 时间列=(select min(时间列) from 表)
select * from tb1 where 时间列=(select min(时间列) from tb1)
http://topic.csdn.net/u/20080626/00/43d0d10c-28f1-418d-a05b-663880da278a.html
select * from 表 A where not exists(select 0 from 表 B where A.时间列>B.时间列)
--或者
select * from 表 where 时间列=(select min(时间列) from 表)