TSql随机获取一条

select top 1 * from T_ClassSecond order by NEWID()

使用 top 来获取最多多少条,使用 order by NewID()随机排序

posted @ 2013-03-21 14:02  点滴成事  阅读(152)  评论(0)    收藏  举报