oracle如何取出查询结果中的某一条数据

此为查询结果的最新的一条数据。

SELECT * FROM issuesteps  where updateDate=(select max(updateDate) from issuesteps)

或者 

    select * from(select * from issuesteps    where issue=1 and updateDate is not null
order  by updateDate desc) a where   rowNum=1

猜你喜欢

转载自deony2jacob1314.iteye.com/blog/1654322