有两张表A, B, 他们都是大数据表,将他们按各自的分表键分表之后变成了A_0, A_1, B_0, B_1.
select a.name, b.name as n2
from A a
INNER JOIN B b on a.xx= b.yyy
where a.shardingKey=xxx and b.shardingKey=yyy
Atlas貌似最终不会生成分表 的join语句(e.g. select a.name, b.name as n2 from A_0 a inner join B_1 b on a.xx=b.yyy)
有两张表A, B, 他们都是大数据表,将他们按各自的分表键分表之后变成了A_0, A_1, B_0, B_1. select a.name, b.name as n2 from A a INNER JOIN B b on a.xx= b.yyy where a.shardingKey=xxx and b.shardingKey=yyy
Atlas貌似最终不会生成分表 的join语句(e.g. select a.name, b.name as n2 from A_0 a inner join B_1 b on a.xx=b.yyy)