【发布时间】:2019-02-12 15:21:07
【问题描述】:
我是德鲁伊的新手。到目前为止,我一直在使用 mysql 数据库。我想知道,如何在嵌套的mysql查询下面写一个druid查询?
Select distinct(a.userId) as userIds
from transaction as a
where
a.transaction_type = 1
and a.userId IN (
select distinct(b.userId) where transaction as b where a.transaction_type = 2
)
非常感谢您的帮助。
【问题讨论】:
标签: druid