W
wdbcpw
Unregistered / Unconfirmed
GUEST, unregistred user!
表结构
id myip
1 192.168.1.1
2 192.168.1.2
adoquery1.Close;
adoquery1.SQL.Text:='select myip from IP_Write where id in(select max(id) id from ip_write)';
adoquery1.Open;
用上述SQL语句可查到最大id2对应的IP地址为192.168.1.2,但是如何将值赋给eidt1.text呢
id myip
1 192.168.1.1
2 192.168.1.2
adoquery1.Close;
adoquery1.SQL.Text:='select myip from IP_Write where id in(select max(id) id from ip_write)';
adoquery1.Open;
用上述SQL语句可查到最大id2对应的IP地址为192.168.1.2,但是如何将值赋给eidt1.text呢