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: 8,751 · Posted: 2020-05-16
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...