1、左链接:

select * from tbl1 Left Join tbl2 where tbl1.ID = tbl2.ID

左链接意思是查询左边表tbl1所有内容以及tabl2中满足where条件的内容;

2、右链接:

select * from tbl1 right Join tbl2 where tbl1.ID = tbl2.ID

右链接意思是查询tal2中所有内容以及tal1中所有满足where条件的内容;

3、内连接:

select * FROM tbl1 INNER JOIN tbl2 ON tbl1.ID = tbl2.ID

意思同select * from tbl1,tbl2 where tbl1.id=tbl2.id。