当前位置: 代码迷 >> ASP >> 随机显示一条信息如何写
  详细解决方案

随机显示一条信息如何写

热度:227   发布时间:2012-03-16 16:34:56.0
随机显示一条信息怎么写?
表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()
  相关解决方案