1.交叉连接
返回两个表的笛卡尔积:select * from A,B
比如A的id有{1,2,3},B的aid有{2,3,4},得到的数据:
id .....aid.....
1 2
1 3
1 4
2 2
.... ....
3 3
3 4
2.内连接--inner join(inner可以省略)
2.1隐式内连接(看不到join的内连接)
就是加了条件的交叉连接:select * from A,B where A.id = B.aid
比如A的id有{1,2,3},B的aid有{2,3,4},得到的数据:
&