yii2.0 union all 查詢 如何使用

項目中須要使用到union all聯合查詢,查看了yii2的中文手冊和百度了一下,沒有說明有union all 相關的查詢方法。只有簡單的介紹怎麼用union。又由於union會去重。 無奈查看源碼,發現query.php(路徑yii2\db\Query.php)中有關於union方法有兩行註釋:php /** * Appends a SQL statement using UNION opera
相關文章
相關標籤/搜索