shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

问一下 database-strategy.complex.sharding-columns设置的字段,字段;查询时是只能包含着两个字断才能查询,不能只使用某一个查询吗

Open jiangbin216 opened this issue 7 years ago • 1 comments

如:使用这两个分片策略的 merchant_id,out_user_id ; sql查询时,select * from t_recharge where merchant_id='' and out_order_id=''
这个查询就直接报空指针了,在mysql库里查询sql是没有问题的

jiangbin216 avatar Mar 08 '19 07:03 jiangbin216

For English only, other languages will not accept.

terrymanu avatar Mar 08 '19 07:03 terrymanu