|
|
发表于 2021-7-14 10:51:12|来自:
|
显示全部楼层
您好:这三种方式都可以直接使用
select o.name,o.age,o2.grade from test1 o,test12 o2 where o.name=o2.name
select o from test1 o where exists(select o2 from test12 o2 where o.name=o2.name)
select o.name,o.age,n.grade FROM test1 o LEFT JOIN test12 n ON o.name = n.name
仅对自建表可以跨表查询,系统表不可以跨表查询 |
|