随机显示一条信息怎么写?
表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()
发布时间: 2012-03-16 16:34:56 作者: rapoo
随机显示一条信息怎么写?
表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()