在mongodb中创建来自多个集合的视图

时间:2018-05-07 09:35:25

标签: 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]

0 个答案:

没有答案