sw0414(提问者)select @sort:=@srot+1 as srot,name,gatherer,context,num,createTime,fileList,id
from bwsn_evidence where pid=\'${pid}\' order by sort (select @sort:=0) asc 不对?
GxHjb 回复 sw0414(提问者)select @sort1:=@srot1+1 as srot1,A.* from(select srot,name,gatherer,context,num,createTime,fileList,id from bwsn_evidence where pid=\\\'${pid}\\\' order by sort asc)A,(select @sort1:=0) B 这样试试