从两种SQL表连接写法来了解过去

qq_36578 6 0 PDF 2021-01-16 03:01:47

例如:一个二表连接的SQL,有两种写法: (1)select A.c1,A.c2,B.c1,B.c2 from table1 A,table2 B where A.id=B.id (2)select A.c1,A.c2,B.c1,B.c2 from table1 A join table2 B on A.id=B.id 哪种写法好呢?现在提倡用哪一种? 你喜欢用哪一种? 代码如下:select * from a,b where a.id=b.id select * from a inner join b on a.id=b.id —这两个哪个好? 其中11楼的回答最为深入。其实这个问题还是有

用户评论
请输入评论内容
评分:
暂无评论