W
www.ynxbs.com
Unregistered / Unconfirmed
GUEST, unregistred user!
Read := TadoDataSet.Create(nil); Read.Connection := self.ADOConnection1; memo1.Lines.Add('加载read 缓存...'); Read.CommandText := 'select IID FROM Teacher order by IID'; Read.open; //消耗3秒 memo1.Lines.Add('加载sort list 缓存...'); sort := tstringlist.Create; while not read.Eof do begin sort.Add(read.fields[0].AsString); read.Next; end;//我的记录集合有17000条记录,循环消耗了40多秒,各位,能帮我提高速度吗?