string preSql = "select * from [news] where news_id = (select MAX(news_id) from [news] where news_id<" + id + ")"; string nextSql = "select * from [news] where news_id = (select MIN(news_id) from [news] where news_id>" + id + ")";