首页 > 数据库技术 > 详细

mysql视图,使用union

时间:2020-01-08 20:27:15      阅读:67      评论:0      收藏:0      [点我收藏+]

CREATE VIEW `speech_label_all_uv_pv` AS
select `speech_label_uv_pv`.`cdate` AS `cdate`,`speech_label_uv_pv`.`source` AS `source`,`speech_label_uv_pv`.`page` AS `page`,`speech_label_uv_pv`.`description` AS `description`,`speech_label_uv_pv`.`code_perform` AS `code_perform`,`speech_label_uv_pv`.`label` AS `label`,`speech_label_uv_pv`.`uv` AS `uv`,`speech_label_uv_pv`.`pv` AS `pv` from `speech_label_uv_pv` union all select `speech_label_order_uv_pv`.`cdate` AS `cdate`,`speech_label_order_uv_pv`.`source` AS `source`,`speech_label_order_uv_pv`.`page` AS `page`,`speech_label_order_uv_pv`.`description` AS `description`,`speech_label_order_uv_pv`.`code_perform` AS `code_perform`,`speech_label_order_uv_pv`.`label` AS `label`,`speech_label_order_uv_pv`.`uv` AS `uv`,`speech_label_order_uv_pv`.`pv` AS `pv` from `speech_label_order_uv_pv`


mysql视图,使用union

原文:https://www.cnblogs.com/shenguo/p/12168273.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!