我有一个版本比较低的ACCESS数据库(ACCESS2000打开报不能转换ACCESS1.X的数据库),其中有两个表,运行如下SQL语句,
insert into ReadSheets select 0 as 流水号,a.HavingPay as 结算,a.Caller as 主叫,a.Recver as 被叫,a.Where as 被叫地点,'' as 被叫类型,a.StartTime as 始话,a.EndTime as 终话,a.CallTime as 话次,iif(trim(str(timelength \ 60))>60,trim(str(timelength\60\60))+'小时'+trim(str((timelength\60) mod 60))+'分'+trim(str(timelength mod 60))+'秒',iif(timelength>=60,trim(str(timelength \ 60))+'分'+trim(str(timelength mod 60))+'秒',trim(str(timelength mod 60))+'秒')) as 时长,a.Fee as 话费,a.Tag as 附加费,a.Ser as 服务费,a.Total as 合计,a.FeeRatio as 费率 from sheets a where NOT Exists(Select * from ReadSheets b where a.Caller=b.主叫 and a.StartTime=b.始话 and a.EndTime=b.终话)"如果ReadSheets表如果有两万条,sheets表只有几千条那还可以运行,只是用了两分多钟,如果每个表中数据有两万条,运行到这儿的时候非常慢,程序停止响应!这个问题怎么解决啊,请大家帮帮忙解决啊!!!