|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
请自己测试
SELECT 表1.* INTO All_B0
FROM (select [AC_B0].Version, [AC_B0].[Account Code], [AC_B0].[Account Name], [AC_B0].[Expenses Item], [AC_B0].[Expenses Type], [AC_B0].[Responsible Dept], [AC_B0].Department, [AC_B0].Branch, [AC_B0].Cities, [AC_B0].Standard_Year, [AC_B0].Standard_Month, [AC_B0].Amount
FROM [AC_B0]
union all
SELECT [AG_B0].Version, [AG_B0].[Account Code], [AG_B0].[Account Name], [AG_B0].[Expenses Item], [AG_B0].[Expenses Type], [AG_B0].[Responsible Dept], [AG_B0].Department, [AG_B0].Branch, [AG_B0].Cities, [AG_B0].Standard_Year, [AG_B0].Standard_Month, [AG_B0].Amount
FROM [AG_B0]
union all
SELECT [BD_B0].Version, [BD_B0].[Account Code], [BD_B0].[Account Name], [BD_B0].[Expenses Item], [BD_B0].[Expenses Type], [BD_B0].[Responsible Dept], [BD_B0].Department, [BD_B0].Branch, [BD_B0].Cities, [BD_B0].Standard_Year, [BD_B0].Standard_Month, [BD_B0].Amount
FROM [BD_B0]) as 表1; |
|