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