oracle怎么查看字段最大值

更新时间:02-09 教程 由 果儿 分享

oracle怎么查看字段最大值?

oracle sql查询时查看字段最大值实现例句如下所示:

1、SELECT a.*

FROM table1 a WHERE NOT

EXISTS (SELECT 1 FROM table1 b WHERE b.id>a.id)

2、select * from table, (select name,max(value) value from table group by name) a where

table.name=a.name

and table.value=a.value

声明:关于《oracle怎么查看字段最大值》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2294155.html