首页 > 解决方案 > 从 mongodb 中的多个集合创建视图?

问题描述

SQL Server 中的视图想在 mongodb 中创建

CREATE VIEW memplog
AS
    SELECT
        recipient, originator, [text], create_date, sent_date   
    FROM
        [smslog_01042018]
    UNION ALL
    SELECT
        recipient, originator,[text], create_date, sent_date
    FROM
        [smslog_02042018]
    UNION ALL
    SELECT
        recipient, originator,[text], create_date, sent_date
    FROM
        [smslog_03042018]

标签: mongodb

解决方案


推荐阅读