摘要:
1、在编写随机出卷系统时,用到随机抽出题库中的N道题目,方法很多,有人使用随机函数等等,其实,一条sql语句搞定: select top 30 * from test order by newid() order by newid():随机产生id号,然后根据id号排序; top 30:前30道题目。 2、在排名次时,经常遇到取前10名,但刚好第11名(12、13...)的成绩... 阅读全文
posted @ 2008-10-14 09:50
netcorner
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号