菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
366
0

mysql视图,使用union

原创
05/13 14:22
阅读数 77295

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`


发表评论

0/200
366 点赞
0 评论
收藏