数据库查询前10(N)条数据的方法
文章目录一、Oracle中查询前10条数据二、DB2中查询前10条数据三、MySql中查询前10条数据一、Oracle中查询前10条数据select * from table where rownum<=10;二、DB2中查询前10条数据select * from table fetch first 10 rows only;三、MySql中查询前10条数据select * from table limit 10;查看第5到第15条数据:select * from table