从访问表在GridView中随机显示数据 [英] Display data randomly in gridview from access table
本文介绍了从访问表在GridView中随机显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在网格视图中定期分发记录,即某个时间记录8将在网格视图中显示1st,而某些时间记录4则显示n等...有人可以帮助我吗???提前Thnx ...
I want to dispaly my records rendomly in my gridview, i.e. some time record no8 will display 1st in grid view n some time record no 4 diaplay n so on... Can any one help me out??? Thnx in advance...
推荐答案
u将在sqlserver中尝试newid().
如下所示
通过newid()从表顺序中选择*
u will try newid() in sqlserver.
like as follows
select * from table order by newid()
这篇关于从访问表在GridView中随机显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文