shardingjdbc 分库分表的时候 必须是 每个分的库的 里边的表名 必须一致吗
比如说现在的分库是这样: db1 (数据库) 表(t_order1、t_order2)db2(数据库) 表(t_order1,t_order2)
能不能
db1 (数据库) 表(t_order1、t_order2)db2(数据库) 表(t_order3,t_order4) 这样???
我现在用db1 (数据库) 表(t_order1、t_order2)db2(数据库) 表(t_order3,t_order4)这种设计 会报错 。它会把数据库和表进行笛卡尔集 循环查询
2018-11-14 15:29:15.285 [ShardingJDBC-11] ERROR com.google.common.util.concurrent.AggregateFuture - Got more than one input Future failure. Logging failures after the first
java.sql.SQLSyntaxErrorException: Table 'mr5.t_order_148' doesn't exist
java.sql.SQLSyntaxErrorException: Table 'mr4.t_order_148' doesn't exist
java.sql.SQLSyntaxErrorException: Table 'mr3.t_order_148' doesn't exist