我有两张桌子Employee
和Customer
.
我想要一个Employee
的姓名和地址,然后是Customer
一个视图中的姓名和地址。
这就是我所拥有的:
CREATE VIEW Mail_List AS
SELECT C.CustName, C.CustAddress
FROM Customers C
UNION
Select E.EmpCustName, E.EmpCustAddress
From Employees E;
但它说No rows were affected
。请帮忙!