select id,station_name,parent_id,root_id,img_count,station_addr
from (select row_number() over(order by index_of) as row_num,a.*
from xrongeap..tbl_sunroam_station a where a.root_id=1 and a.parent_id!=1and show_able=1 ) as b where b.row_num>"+startIndex+" and b.row_num<="+endIndex;
这里的row_number() 只支持sqlserver2005以上的版本
