1、sqlite3数据库
select  * from QG  order by random() limit 6

以下显示前10条记录

2、SQL Server数据库
select top 10 * from table_name;

3、DB2数据库
select * from table_name fetch first 10 rows only;

4、Oracle数据库
select * from table_name where rownum <=10;

5、MySQL数据库
select * from table_name limit 10;

6、Informix 数据库
select first 10 * from table_name;

7、Teradata数据仓库
select * from table_name sample 10;

相关文章:

  • 2021-10-18
  • 2021-11-17
  • 2021-09-06
  • 2021-07-08
  • 2021-06-16
  • 2021-09-08
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2022-01-05
  • 2021-09-09
  • 2022-03-03
  • 2021-07-11
  • 2022-12-23
相关资源
相似解决方案