sql语句的解释

来源:百度知道 编辑:UC知道 时间:2024/07/02 21:35:28
select * from tb_bookInfo as a inner join tb_bookType as b on a.bookType=typeID where a.bookBarCode='" + bookBarCode + "'"
谁能帮我解释下这个语句的,我看不懂

tb_bookinfo 别名为 a
tb_bookType 别名为 b
a和b连接 等值条件是a.bookType=typeID
where 判断条件
-------------------------------------
inner join on 是多表连接用的。

这句话相当于select * from tb_bookInfo a ,tb_bookType b where a.bookBarCode='" + bookBarCode + "'"