A
id name time
1 张三 2016-06-15
2 李四 2016-06-15
3 王五 2016-06-12
B
id name time
1 张三 2016-06-15
3 王五 2016-06-12
4 李子 2016-05-03
C
id name time
1 张三 2016-06-15
2 李四 2016-06-15
4 李子 2016-05-03
D
id name time
5 张字 2016-06-15
9 李的 2016-06-15
8 李无 2016-05-03
创建视图语句
create view testview
as
select * from A
union all
select * from B
union all
select * from C
union all
select * from D
这样创建视图的话会有重复的 张三和王五 ,怎么样才可以在创建时不重复呢?