sunt88126 发表于 2007-8-12 20:45
asp+access读取数据的问题
<P>想读取符合某一条件<FONT color=#e6421a>(即newsid="& newsid &")</FONT>的数据表<FONT color=#ee1111>Review</FONT>中最后一条记录 <BR>用<BR>"select top 1 * from Review where newsid="& newsid &"order by reviewid desc" <BR>为什么不行?<BR></CD><BR><BR><BR><BR><BR></P>
madpbpl 发表于 2007-8-13 00:22
<P>"select top 1 * from Review where newsid="& newsid &"order by reviewid desc" <BR>改成<BR>"select top 1 * from Review where newsid='" & newsid & "' order by reviewid desc" <BR>试试<BR></P>
sunt88126 发表于 2007-8-13 09:11
谢谢,可以了,这是什么原因呢
madpbpl 发表于 2007-8-13 09:59
<DIV class=quote><B>以下是引用<U>sunt88126</U>在2007-8-13 9:11:32的发言:</B><BR>谢谢,可以了,这是什么原因呢</DIV>
<P>根据newsid的类型不同,写法也不同</P>
sunt88126 发表于 2007-8-13 18:32
谢谢
页:
[1]