如果Oracle中总行数超过10,如何从表中获取行? [英] How to get rows from a table if total rows are more than 10 in Oracle?

查看:98
本文介绍了如果Oracle中总行数超过10,如何从表中获取行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个基于Oracle的查询,我可以选择如果我想看到的结果。让我们说:

I want to write a Oracle based query where I can choose if I want to see the results. Let's say:

SELECT *
FROM table
//when there are more than 10 rows

我该如何做?

推荐答案

select * from table
where 10 < (select count(*) from table)

这篇关于如果Oracle中总行数超过10,如何从表中获取行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆