1. select XX from XX where xxx//SQL
2. Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions): Boolean; override;
3. filted:=true;filter:='xxxx';
4. SQL+参数
query.sql.text:=format('select xx from xxx where xx="%s"',[edit1.text]);