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

分表操作 #48

Closed
pigbrother opened this issue Feb 15, 2019 · 6 comments
Closed

分表操作 #48

pigbrother opened this issue Feb 15, 2019 · 6 comments
Labels

Comments

@pigbrother
Copy link

对于分表的操作,(切换表名)貌似不是很友好?请赐教

@Ahoo-Wang
Copy link
Member

@pigbrother 请把场景描述清楚。

@pigbrother
Copy link
Author

比如按地域或者说区县来分表(已分)
假设都由表 table 分出 (与table字段 索引等都一致)扩展
table_1 table_2 table_3 。。。table_N
正常情况下 只需要判断 table是否做分表处理
如果做了 获取最新的table_m 然后生成sql即可。
现在配置到xml 对于此场景貌似不是很友好(要么说针对这种操作单独做处理)。

@pigbrother
Copy link
Author

比如xml配置 insert into table(xxx,xx,xx,xxx) values(xx,xx,xx,xx)
实际比如是 北京地域提交上来的
获取到北京所在的表为 table_1
实际得更换sql 为 insert into table_1(xxx,xx,xx,xxx) values(xx,xx,xx,xx)

@Ahoo-Wang
Copy link
Member

@pigbrother
Copy link
Author

了解 thanks

@windsOne
Copy link

@pigbrother 方便加个qq 吗 询问些使用问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants