在Propel中加入两个查询

时间:2014-05-28 18:52:20

标签: sql join propel

我对Propel很新。我试图用Propels对象表示法编写以下查询:

SELECT A.*, B.*
FROM (SELECT * FROM  followers WHERE `column1` = 000) AS A
RIGHT JOIN (SELECT * FROM followers WHERE `column1` = 111) AS B
ON A.UserID = B.UserID
WHERE A.UserID IS NULL;

任何帮助将不胜感激!提前谢谢!

0 个答案:

没有答案