S scxxf Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-10 #1 请问用select sum(yourfield) from yourtable可以求出某个字段的和,但如何将统计结果显示 在一个文本框中呢?
Z zhihuali Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-10 #2 select sum(yourfield) as SumNumber from yourtable Edit1.Text:=Query.FieldByName('SumNumber').AsString;
select sum(yourfield) as SumNumber from yourtable Edit1.Text:=Query.FieldByName('SumNumber').AsString;
D dadabox Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-10 #3 edit1.text:=Query.Fields[0].AsString;也行﹐因為你只有一個字段。
S scxxf Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-10 #4 如何将结果传给一个变量,而不是字段呢,引用时直接引用变量
Y ydm858 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-03 #5 那你可以 select sum(yourfield) as SumNumber from yourtable 变量:=Query.FieldByName('SumNumber').AsString;