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に移動します