delphi把ID字段中的最大值赋给edit1.text
用AdoQuery
SQL:='Select MAX(id) from Atable'
关键字词:
用AdoQuery
SQL:='Select MAX(id) from Atable'