为什么在select中加了top 1 ,结果还是得到多条记录.
如下语句:
ThRs.Open "select top 1 Thtmmx.id,Thtmmx.Thid,Productset.productid,thtmmx.txm,productset.productname,Thtmmx.thdays from Thtmmx,Cktmmx,productset where thtmmx.txm=cktmmx.txm and cktmmx.productid=productset.productid and Thtmmx.Thid=" & ThId & " order by Thtmmx.id desc", db, adOpenDynamic, adLockOptimistic
最后得到的还是多条记录.不知道为什么?