P pckite2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-14 #1 现有表一:NUM 表二:ID NAME PASS 我现在想限定表二显示的记录数为表一中的‘NUM’字段的值,如果实现?
Q QuickSilver Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-14 #2 num:=3; adoquery1.Close; adoquery1.SQL.text:='select top '+inttostr(num)+' * from 表2 where ....'; adoquery1.Open;
num:=3; adoquery1.Close; adoquery1.SQL.text:='select top '+inttostr(num)+' * from 表2 where ....'; adoquery1.Open;