procedure TForm1.Button1Click(Sender: TObject);
begin
 with query1 do
 begin
   Close;
   SQL.Clear ;
   SQL.Add('select count(distinct sex) from student.db');
   SQL.Add('where sex=:sex' );
   ParamByName('sex').AsString := Trim(edit1.text);
   Open;
 end;
   label1.Caption := query1.Fields[0].value;
end;我想要得到的答案是有4条记录的,可label1.caption显示出来的是1,怎么回事?