Yalishanda30 发表于 2021-10-30 10:35
单个查询修改好了,查询一个速度不慢,50条12秒
把数据放到access数据库速度明显快很多
[url=http://e.anyoupin.cn/?s=select * from 条码商品名称明细表 where 条形码 in ('6954767425979','6954767416274','6915766003605','6954767417684','6954767422473','6915766004084','6954767410586','6954767410500','6954767430508','6915766003391','6915766000109','6915766000383','6915766000796','6915766001793','6954767432076','6930270200173','6930270200180','6954767442778','6930270201170','6930270201576','6954767433073','6954767430386','6954767430188','6954767433776','6954767434674','6954674472783','6954767430218','6954767430423','6954767435930','6954767430461','6915766000291','6915766000390','6915766002905','6915766002929','6915766003018','6954767442075','6930270201347','6954767441481','6954767447278','6954767449371','6954767447476','6953392520332','6954767442471','6954767493237','6915766003629','6954767441788','6954767494982','6954767493473','6954767430522','6926273300781','6926273300378')]http://e.anyoupin.cn/?s=select * from 条码商品名称明细表 where 条形码 in ('6954767425979','6954767416274','6915766003605','6954767417684','6954767422473','6915766004084','6954767410586','6954767410500','6954767430508','6915766003391','6915766000109','6915766000383','6915766000796','6915766001793','6954767432076','6930270200173','6930270200180','6954767442778','6930270201170','6930270201576','6954767433073','6954767430386','6954767430188','6954767433776','6954767434674','6954674472783','6954767430218','6954767430423','6954767435930','6954767430461','6915766000291','6915766000390','6915766002905','6915766002929','6915766003018','6954767442075','6930270201347','6954767441481','6954767447278','6954767449371','6954767447476','6953392520332','6954767442471','6954767493237','6915766003629','6954767441788','6954767494982','6954767493473','6954767430522','6926273300781','6926273300378')[/url]
50个用in 拼接后应该会快些 |