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 我想从数据库中获取随机数据来制作 MCQ 问题的其他选项。是否有任何方法或查询可以从数据库中随机获取数据?
SELECT SomeColumn FROM SomeTable ORDER BY CHECKSUM(NEWID())
学分转到https://stackoverflow.com/a/121634/381995