var sql1,str:string; count:floatbegin adoquery1.close; adoquery1.sql.text := 'select count(*) from a'; adoquery1.open; count := adoquery1.fields[0].asinteger; ///////这里end;c