简单来说:
String sql = "select top "+page_no+ " * from (select row_number() over (order by tid) as rownumber ,* from topic ) a where rownumber >?
SQL语句top后面的?应该用字符串进行拼接可以解决。
简单来说:
String sql = "select top "+page_no+ " * from (select row_number() over (order by tid) as rownumber ,* from topic ) a where rownumber >?
SQL语句top后面的?应该用字符串进行拼接可以解决。