Query1.CLose;
Query1.SQL.Clear;
Query1.SQL.Add('Select * From sp where sp_sph like ''s%'' ');
Query1.Open;
query1.first;
while not query1.eof do
begin
ListView.item.add(query1.fieldbyname(sp_sph).Asstring);
query1.next;
end;
Query1.CLose;
Query1.SQL.Clear;
Query1.SQL.Add('Select * From sp where sp_sph like ''s%'' ');
Query1.Open;
query1.first;
ListView.clear;
while not query1.eof do
begin
ListView.item.add(query1.fieldbyname(sp_sph).Asstring);
query1.next;
end;
Query1.CLose;
Query1.SQL.Clear;
Query1.SQL.Add('Select * From sp where sp_sph like ''s%'' ');
Query1.Open;
query1.first;
ListView.clear;
while not query1.eof do
begin
ListView.item.add(query1.fieldbyname(sp_sph).Asstring);
query1.next;
end;