改组数据表行 [英] shuffle datatable rows
本文介绍了改组数据表行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
如何在C#中重新整理数据表行?
谢谢
Hi to all
How to shuffle datatable rows in C#?
Thanks
推荐答案
一种显示方法 ^ ].
以随机顺序选择它们,或在拾取后将其随机化!为什么要对数据库中的行进行混排?
Pick them in random order or randomize it after picking! Why to shuffle row in DB?
您有什么可能需要对数据表行进行随机混排?
该顺序无关紧要,只要有数据就可以由查询提取.
数据表对于用户是不可见的,因此它的顺序并不重要.
您能解释一下这样做的原因吗?
What possible need do you have for random shuffling of the datatable rows?
The order is immaterial, so long as the data is there it can be pulled by the query.
The datatable is invisible to the user, and it is not important what order it is in.
Can you explain the reason you wish to do this?
这篇关于改组数据表行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文