Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持多子表联合查询不? #149

Open
jmbkeyes opened this issue Apr 19, 2019 · 0 comments
Open

支持多子表联合查询不? #149

jmbkeyes opened this issue Apr 19, 2019 · 0 comments

Comments

@jmbkeyes
Copy link

jmbkeyes commented Apr 19, 2019

有两张表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

最终不会生成分表 的join语句类似(e.g. select a.name, b.name as n2 from A_0 a inner join B_1 b on a.xx=b.yyy)

@jmbkeyes jmbkeyes changed the title 支持多子表联合查询部? 支持多子表联合查询不? Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant