且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从数据库加载一些值(C#)

更新时间:2023-02-03 22:28:36

你可以直接从sql server中随机选择n行。那么你不必担心如何在后面的代码中随机选择行。

查看下面你可以使用的sql语法的问题和答案。

[ ^ ]
you can randomly select n number of rows directly from sql server. then you don't need to worry about how to randomly select rows in the code behind.
check below question and answers for the sql syntax you can use.
Select n random rows from SQL Server table[^]