Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 oracle 11.2 数据库,需要以下查询:
SELECT * FROM table1 a, table2 b WHERE a.id = b.a_id AND (a.a_col1, b.b_col1) in ((?, ?), (?, ?), (?, ?))
请注意,这些值无关紧要,我对这种查询的结构感兴趣。我将从java执行查询,传递参数。
更新:嗯,它确实有效。我希望有一天有人需要这些信息...
哦,是的,我的查询确实有效!我在 TOAD 中尝试时忘记了一些括号。我在这里写对了!