在SQL中找到MySQL Intersect
Alternatives in MySQL
To achieve a similar result in MySQL, one can use:INNER JOIN:
Per column values match between both tables, but duplicates will be returned.
(select * from emovis_reporting在其中(id = 3 and cut_name ='全プロセス'和cut_name ='恐慌')))) 相交 (從emovis_reporting中選擇 * where(id = 3)和(cut_name ='全プロセス'或cut_name ='恐慌')) MySQL使用Inner offerative使用Inner offerative:
mysql externative使用wery ... in:這些mySQL替代返回滿足兩個子徵中指定條件的不同值。但是,重要的是要注意,ID列涉及此特定查詢,這將防止重複返回。對於沒有唯一標識符的查詢,可能需要在外部查詢中使用不同的查詢來確保唯一結果。
免責聲明: 提供的所有資源部分來自互聯網,如果有侵犯您的版權或其他權益,請說明詳細緣由並提供版權或權益證明然後發到郵箱:[email protected] 我們會在第一時間內為您處理。
Copyright© 2022 湘ICP备2022001581号-3