//查询table1里的女性
with adoquery1 do begin
close;
sql.clear;
sql.add('select * from table1 where sex="女"');
open;
end;
//怎么这样写不行,
sql.add('select * from table1 where sex='+quotedstr('女');
//或者
sql.add('select * from table1 where sex=:Para1');
Parameters.ParamByName('Para1').Value:='女';
//这样是可以,但总觉得麻烦,有没有更简便的方法???
//还有。如果字段是其他类型(非字符串),又该怎样写呢??