执行报表服务端基类executeCreateAsSelectInto方法会创建临时表:
if(!bool){//把明细数据放入临时表
bool = true;
StringBuffer sbf1 = new StringBuffer();
sbf1.append("select * into ").append(newTable).append(" from (");
sbf1.append("select * from ( select ").append(o++).append(" no,kacname,fbizdate,billnumber,manumber,maname,fmodel,muname,fqty,");
sbf1.append(" factualprice,famount,ptname,hzname,cuname,FCalculateType,xszz,warehouse,fpurqty from ").append(loadTable);
sbf1.append(" where kacname = '").append(kacname.get(j)).append("' and hzname = '").append(ptname.get(i)).append("' order by maname ))");
executeCreateAsSelectInto(sbf1.toString(), null, ctx);
}