sql = "select * from tablename order by id asc"
按id号从大到小排列
sql = "select * from tablename order by id desc"
你有2个查询语句,2个nSql,这样设置是矛盾的,建议改成查询语句:Sql="Select top 10 * From [Dv_Topic] Order By TopicID DESC,boardid DESC"
这样就可以了,优先TopicID倒序再按boardid倒序,你试试!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)