我有两张桌子:
[TABLE1]
+----------+-------------------+
| USERNAME | POST |
+----------+-------------------+
| Bob | 'Hi There' |
| Jack | 'Hello' |
| Bob | 'Today is Monday' |
+----------+-------------------+
[TABLE2]
+----------+-----------+
| USERNAME | FOLLOWING |
+----------+-----------+
| Mike | Jack |
| Jack | Bob |
| Bob | Jack |
| Jack | Mike |
+----------+-----------+
我知道当你想要一行时如何连接两张桌子.. 但是当你想解决下面的问题时呢?
Select * from TABLE1 when TABLE1.USERNAME IS A USERNAME JACK is FOLLOWING;