zoukankan
html css js c++ java
oracle查询前N条数据的两种方式
在实际用途中,常常会要求取表中前几条纪录,就有以下两种方式来获取数据:
先排序后查询: SELECT * FROM
(SELECT * FROM 表 m ORDER BY create_time DESC)
WHERE ROWNUM <= 10 ,
先查询后排序: SELECT * FROM 表 m WHERE ROWNUM <= 10 ORDER BY create_time DESC;
查看全文
相关阅读:
MyBatis(五)动态SQL 之 foreach 标签
MyBatis(五)动态SQL 之 bind绑定
MyBatis(五)动态SQL 之 sql 标签(重用片段)
MyBatis(五)动态SQL 之 choose(when、otherwise)标签
Interesting Finds: 2008.04.19
Interesting Finds: 2008.04.15
Interesting Finds: 2008.04.22
Interesting Finds: 2008.04.18
Interesting Finds: 2008.04.17
Interesting Finds: 2008.04.23
原文地址:https://www.cnblogs.com/zoushiyu/p/9746550.html
最新文章
Matplotlib
pandas使用
OpenStack
numpy环境搭建
kvm qemu libvirt
硬盘读取速度测试
Flask之Jinjia模板
PPT动手动脑2
PPT动手动脑3
大二上每日总结
热门文章
大二上学期周总结
大二上每日总结
大二上每日总结
大二上每日总结
MyBatis(五)动态SQL 之 if 与 where 标签
MyBatis(五)动态SQL 之 动态SQL简介
MyBatis(五)动态SQL 之 trim 标签
MyBatis(四)映射文件 之 备用5
MyBatis(五)动态SQL 之 set 标签
MyBatis(五)动态SQL 之 内置参数:_parameter&_databaseId
Copyright © 2011-2022 走看看