select * from
(select t.num_col x,rownum num from
(select num_col from table_a order by num_col desc ) t ) newt
where newt.num<20 and newt.num>10
(select t.num_col x,rownum num from
(select num_col from table_a order by num_col desc ) t ) newt
where newt.num<20 and newt.num>10
本文介绍了一种使用SQL进行特定范围数据检索的方法,通过一个具体的例子展示了如何从表table_a中选取num_col字段值在10到20之间的记录,并按其值降序排列。
2345

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



