单表查询。一个字段有多条记录,要取时间最老的一条。新手啊。请教下大家。谢谢
解决方案 »
- 使用oracle数据库,多用户同时对一个表进行增加,删除,修改,查看等操作,会不会有影响?
- 一个sql语句,请帮看看
- CAS登陆验证后查询用户基本信息时中文出现乱码,导致deployerConfigContext.xml报错
- 关于一个思路的问题
- 怎样在下面存储过程中加入创建索引?
- 我想用sql命令创建一个表空间tbs_qa,具体sql如何写啊?
- 求一查询,后一字段等于前面字段的和。oracle9i 在线等
- 求海量数据统计方法(方案),给一定建议,谢谢!在线等。有具体说明。
- 一个vb+oracle的问题,急!!!在线等!!!利马结贴!!!
- .net 调用oracle 编写的存储过程,怎样得到表的集合
- 创建的表空间数据文件能否顺序存储。
- oracle 变量重复不能只显示一个数据
(
select 1 from yourTable b where a.cdate>b.cdate
)
from tb_sp01
where enter_date=
(select mAX(t.enter_date) from tb_sp01 t)
enter_date 日期字段
select * from table_name t
where t.end_date =
(select max(d.end_date) from table_name d
--假设你要的一个字段有多条记录的字段是table_id
group by d.table_id having coutn(1) > 1);
from table1 t
where rowid =(select max(rowid) --max 或min
from table1 t2
where t.field = t2.field)这样可以么,用rowid的大小来判断是最近插入还是之前插入的?