SQL Server随机查询N条数据

2023-12-18 12:00:43 码农 1379
select top N * from tablename order by newid() 

其中,N为查询多少条,tablename为数据库表名称。

—— 完 ——
  • SQL ABS() 函数
  • 数据库营销(Database Marketing)
  • 如何查询汽车维修记录
  • MES数据采集系统需求分析和总体设计
  • 有线电视用于数据传输
  • The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
  • 数据湖与数据中台有什么区别?
  • 数据清洗的定义是什么?
  • 主键和唯一键之间的区别
  • SQL ACOS()函数

© CopyRight 2014~2024 薄学网.