摘要: 第一种方法: select (@i:=@i+1) as i,table_name.* from table_name,(select @i:=0) as it 第二种方法: set @rownum=0;select @rownum:=@rownum+1 as rownum, t.username f 阅读全文
posted @ 2016-09-16 21:12 netcorner 阅读(4577) 评论(0) 推荐(0) 编辑