字串中含有edit1.text查找
query1.close;
query1.sql.clear;
query1.sql.add('select * from tablename where fieldname like :var1 ');
query1.parambyname('var1').value:='%'+edit1.text+'%';
open;
以edit1.text開頭的字串查找
query1.close;
query1.sql.clear;
query1.sql.add('select * from tablename where fieldname like :var1 ');
query1.parambyname('var1').value:='+edit1.text+'%';
open;