inner join 与 where子句有什么区别?

inner join 是内连接,where 是条件判断语句,用where语句可以实现内连接的功能,但区别在于where 语句还可以加上其他条件,而inner join则不可以了。
例如:
select a.*,b.* from a inner join b on a.id = b.id
等同于
select a.*,b.* from a,b where a.id = b.id
但如果用语句二的还可以接着写条件,语句一则要新添where语句

 

posted on 2016-03-21 15:47  867511789  阅读(3109)  评论(0编辑  收藏  举报

导航