Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人会从 SQL Server CE 4 表中选择 n 个随机行的查询?
你有没有尝试过:
SELECT TOP N * FROM table ORDER BY NEWID()
NEWID 导致为结果集中的每一行创建一个 GUID(半随机标识符),并且按它排序应该会给你 N 个相当随机的结果。