、table1.col1はtable2.col2存在しないリターンTABLE1のレコードを見つけ、私が試してみたい(ただし、失敗した)SQL:これは私の文</p> <pre><code>select * from table1 where col1 not in (select col2 from table2); </code></pre> <p>ある
select t1.* from table1 t1
inner join table2 on t1.col1<> t2.col2
行うための別の方法はありますこの?
サブクエリの期待される結果は何ですか?nullを返しますか? (つまり、table2がnullのcol2値を持つ場合)。 – jarlh