select count(*) from imrd_cnxau9999rt
where
time >= to_timestamp('2014-11-06', 'yyyy-mm-dd')
and time < to_timestamp('2014-11-16', 'yyyy-mm-dd');
select max(id) from imrd_cnxau9999rt;
select max(time) from imrd_cnxau9999rt;
//对time没用
select time from imrd_cnxau9999rt order by time desc
10-11月-14 09.01.05.608000000 上午
本文介绍了使用SQL进行数据查询的方法,包括如何统计指定日期范围内的记录数、查找最大ID及时间戳等实用技巧。
9958

被折叠的 条评论
为什么被折叠?



