Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从两个不同的选择请求创建视图
Table : Dog(name,name2) Table : cat(name)
两个选择是:
select (contactws(" ",name,name2) from Dog select (name from Cat)
我想要的视图必须包含两个请求的总和。
create view your_view as select contactws(" ",`name`,name2) as `name` from Dog union select `name` from Cat
如果您使用 ,请确保您的列名相同union。如果不是,则为它们取别名。
union