-1
这是我的联合查询完美的作品,但我的问题是当我开始“CREATE TABLE “active_emps我在NULL COLUMNS上得到错误{错误代码:1060.重复列名'NULL' },这些列中的所有空字段也都有”NULL“。联合2表创建新表,但需要“错误代码:1060.重复列名'NULL'”以及如何标题不匹配的空列
SELECT
sharp.Emp_Name, sharp.EmpNbr, NULL, sharp.Position, sharp.laa_CC, NULL, sharp.EmpTitle, sharp.Location
FROM
sharp
UNION
SELECT
hrlist.Emp_Name, hrlist.EmpNbr, hrlist.HRnewbadge, hrlist.Position, NULL, hrlist.lus_CC, hrlist.EmpTitle, hrlist.Location
FROM
hrlist