日期:2014-05-16 浏览次数:20869 次
select x.id,x.newname,rownum as clicks from (select t.id,t.newname,@rownum:=@rownum+1 rownum from( select id,newname,@rownum:=0 from topicnew where topicid = 'xxxxxx' order by id desc )t)x where x.id='xxxxx'