<%
strsql= "select * from gr where uid="&request("uid")
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn, 1, 1
%>
怎样在里面加入倒序阿 , 就是把 order by riqi desc 放到哪里才行,我放到 where的前面和后面都报 order by 错,谢谢大家。
[知识问答ωωω.χiuGoo.сom]
非常感谢,这个问题就是按照strsql= "select * from gr where uid="&request("uid") & " order by riqi desc"解决的,不过我有个疑问为什么这样不行呢:
strsql= "select * from gr where uid="&request("uid") & "order by riqi desc"就是order前面没有空格