私は以下のクエリをどのように書くかについて少し混乱しています:
私は2つのテーブルを持っています
tbl_one
ID TEXT
1 test1
2 test2
3 test3
4 test4
5 test5
と
tbl_two
ID userID tblone_ID
1 50 1
2 100 1
3 100 2
tbl_twoには表示されないが、特定のユーザー用のtbl_oneの行を取得しようとしています。
たとえば、以下を選択します。
select * from tbl_one, tbl_two
where (tbl_two.tblone_ID !=tbl_one.ID and tbl_two.userID==50)
私の欲望の復活は
Desire resalt:
ID TEXT
2 test2
3 test3
4 test4
5 test5