SQLServer:

select top 10 * from tablename;

select top 10 percent from tablename;

select * from tablename limit 10;

SYBASE:

select top 10 * from tablename;

ORACLE:

oracle中无top命令,可使用以下语句查询前N行记录:

select * from table_name where rownum<=10;

相关文章:

  • 2021-07-22
猜你喜欢
  • 2022-02-15
  • 2021-11-26
  • 2021-08-30
  • 2022-02-15
  • 2022-02-08
相关资源
相似解决方案