一、问题描述 1、面临的问题 开发人员找到我方,希望我们可以给sql进行优化。 (1)当前开发使用with as语句进行数据查询,查询代码如下: 生产机查询时间大约109s。 (关于with as用法见:https://www.topunix.com/post-10515.html) with tab as (select b.scan_barcode, b.datetime_created, a.mo_code from inv_transfer_detail a inner join inv_t…