oracle怎么用查询结果当作where条件?

2024-12-31 13:36:27
推荐回答(1个)
回答1:

  • oracle怎么用查询结果当作where条件?

    1. exists

    where exists (select 1 from abc where xxx)

    2. in

    where xxx in (select xxx from abc where ...)

    3. = (只能返回一行)
    where xxx = (select xxx from abc where ...)

    当然,子查询中是可以使用外部的表。