set @count = 0;
select index from (select (@count := @count+1) as index ,id from table ) as abc ;
这句话怎么改成php可以执行的,那个变量怎么声明赋值,求大大解惑!