SQL语句随机查询数据?
请问:用SQL语句在数据库中随机查询数据 
 例如:数据库表中有100条数据,要随机查询10条数据,就是每次查询的数据都不一样,怎么实现啊?先谢谢啦!
------解决方案--------------------select top 10 * from 表 order by newid()
------解决方案----------------------如: 
 select top 10 * from 表 order by newid()
------解决方案--------------------select top 10 * from tablename order by NEWID ( )      
 ***************************************************************************** 
 欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)    
 最新版本:20070212   
 http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
------解决方案--------------------3个人 几乎一样的答案~
------解决方案--------------------create table # 
 ( 
 id int identity(1,1), 
 col varchar(10), 
 co2 varchar(10) 
 ) 
 create table #1 
 ( 
 id int identity(1,1), 
 col varchar(10), 
 co2 varchar(10) 
 ) 
 insert into # select col1,col2 from tb 
 declare @i int,@cnt int 
 select @cnt=count(1) from # 
 set @i=0 
 while @i <@cnt 
 begin 
 insert into #1 select col1,col2 from # where id=round(rand()*100 ,0) 
 select @i=count(distinct col1) from # 
 end 
 select distinct * from #1 
 drop table #1 
 drop table #