L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-18 #2 declare Answer : {具体类型} select Answer=XXX from TableName where ...
小 小天 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-18 #3 xx:=Query1.fieldbyname('fieldname').asstring;
L liuchuanbo Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-18 #4 query1.sql.add('select......'); ..... xx:=Query1.fieldbyname('fieldname').value;
H hpretty Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-18 #5 如果是在数据库里面,则用Leechange 如果是在程序中则定义一个变量或一个数组 数组: n:=0 while not Query1.eof do begin a[n]:=Query1.fieldbyname('fieldname').value; i:=i+1; Query1.Next; end; 变量就简单了; 给分吧……^_^
如果是在数据库里面,则用Leechange 如果是在程序中则定义一个变量或一个数组 数组: n:=0 while not Query1.eof do begin a[n]:=Query1.fieldbyname('fieldname').value; i:=i+1; Query1.Next; end; 变量就简单了; 给分吧……^_^