展开全部
'假设新闻表为 TB_NEWS
'字段:主键为 ID , 标题 newsTitle
'当前新闻ID CURR_ID
上一条:
sql = "select TOP 1 newsTitle from TB_NEWS where ID<"&CURR_ID&" order by ID desc"
set RS_PRE = CONN.EXECUTE(sql)
==========================================
下一条:
sql = "select TOP 1 newsTitle from TB_NEWS where ID>"&CURR_ID&" order by ID"
set RS_NEXT = CONN.EXECUTE(sql)
'字段:主键为 ID , 标题 newsTitle
'当前新闻ID CURR_ID
上一条:
sql = "select TOP 1 newsTitle from TB_NEWS where ID<"&CURR_ID&" order by ID desc"
set RS_PRE = CONN.EXECUTE(sql)
==========================================
下一条:
sql = "select TOP 1 newsTitle from TB_NEWS where ID>"&CURR_ID&" order by ID"
set RS_NEXT = CONN.EXECUTE(sql)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询