首先祝大侠们在新的一年里快乐,有钱赚,还有幸福呀
顺便帮我看一下这段联合查询出现的两个问题,
第一个问题是运行之后出现参数对话框,让输入参数,
第二个问题是说ypfj as 一票否决合计中的ypfj 不能作为字段名,导致数据不能联接到表里,
请问大家这是怎么回呀,
SELECT ls as 流水, yswx as 验收外协, zxqk as 执行情况, dmbm as 店面编码, dmmc as 店面名称, szfq as 所在分区, szsf as 所在省份, sscs as 所属城市, csjb as 城市级别, dmdz as 店面地址, dmxt as 店面形态,lxdh as 联系电话,[FD/VD], mddmlx as 名单店面类型 ,ysdlx as 验收单类型,cjsmc as 承建商名称,ypfj as 一票否决合计 ,hjdf as 合计得分, ysjg as 验收结果,ycysbz as 一次验收备注 from FD
UNION ALL
select ls, yswx, zxqk, dmbm, dmmc, szfq, szsf, sscs, csjb, dmdz, dmxt,lxdh,[FD/VD], mddmlx ,ysdlx,cjsmc,ypfj ,hjdf, ysjg ,ycysbz from VD
UNION ALL
select ls, yswx, zxqk, dmbm, dmmc, szfq, szsf, sscs, csjb, dmdz, dmxt,lxdh,[FD/VD], mddmlx ,ysdlx,cjsmc,ypfj ,hjdf, ysjg ,ycysbz from DB
UNION ALL
select ls, yswx, zxqk, dmbm, dmmc, szfq, szsf, sscs, csjb, dmdz, dmxt,lxdh,[FD/VD], mddmlx ,ysdlx,cjsmc,ypfj ,hjdf, ysjg ,ycysbz from PL
UNION ALL
select ls, yswx, zxqk, dmbm, dmmc, szfq, szsf, sscs, csjb, dmdz, dmxt,lxdh,[FD/VD], mddmlx ,ysdlx,cjsmc,ypfj ,hjdf, ysjg ,ycysbz from XY;
|