用iferror确实可以去掉这个错误
这个表没啥意义把,全部是单元格组成的
这三个表可以做成一个视图啊
SELECT "表1" as lx,cast([数据1]as decimal) as [数据1],cast([数据2]as decimal) as [数据2],[日期] FROM [表1] UNION
SELECT "表2" as lx,cast([数据1]as decimal) as [数据1],cast([数据2]as decimal) as [数据2],[日期] FROM [表2] UNION
SELECT "表3" as lx,cast([数据1]as decimal) as [数据1],cast([数据2]as decimal) as [数据2],[日期] FROM [表3]
order by [日期]
|