Oracle 限制只返回一条记录
Oracle SQL 大约 205 字MySQL/PostgreSQL 限制一条
使用limit
关键字。
select * from test limit 1;
Oracle 限制一条
Oracle
中不是使用limit
,而是使用rownum
关键字,并使用where
条件来限制。
select * from test where rownum = 1;
限制十条:
select * from test where rownum <= 10;
阅读 5536 · 发布于 2020-05-16
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Java volatile 内存屏障保证可见性和有序性阅读 1108
-
JavaFX Module reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base'阅读 1671
-
PHP 判断函数、类、方法、属性、数组中的 key 是否存在阅读 3166
-
OpenResty lua-resty-auto-ssl: failed to set ocsp stapling for阅读 1642
-
Windows 系统保留端口阅读 543
-
Windows 子系统设置默认 root 用户登录阅读 358
-
Gradle 生成 gradlew 设置版本及属性阅读 4766
-
Redis 内存信息阅读 2054
-
JavaScript onstorage 监听本地存储变更事件阅读 1805
-
Nginx upstream timed out 10060阅读 3721