我在where后面调用一个条件时可以正常运行,但是如下面若调用2个条件
begin
Close;
SQL.Clear;
SQL.Add('select distinct code from alldata where type='''+ComboBox2.Text+''' and group='''+ComboBox3.Text+'''');
Open;
end;
我在where后面调用一个条件时可以正常运行,但是如下面若调用2个条件
begin
Close;
SQL.Clear;
SQL.Add('select distinct code from alldata where type='''+ComboBox2.Text+''' and group='''+ComboBox3.Text+'''');
Open;
end;