asp问题,在线等。帮帮忙吧~!

2025-06-28 18:31:36
推荐回答(1个)
回答1:

在sql语句中 $ 是你要排序的字段名
sql2="select top 10 * from venshop_article where a_sort="&rs("sort_id")&" order by $ desc"

例如:排序字段名ID
sql2="select top 10 * from venshop_article where a_sort="&rs("sort_id")&" order by ID desc"