日期:2014-05-17  浏览次数:21060 次

随机显示一条信息怎么写?
表A     N条数据

首页随机显示一条
刷新下也换一条怎么写?
select   top   1   *   from   qynews   where   stype= '4 '   order   by   id   DESC

要怎么改?在线等待

------解决方案--------------------
写错了

select top 1 * from qynews where stype= '4 ' order by newid()