zjcnb commented on issue #12510:
URL: 
https://github.com/apache/shardingsphere/issues/12510#issuecomment-924948508


   Hi, your sharding key is centerId, but your sql are
   
   ```
   Logic SQL: select traineecen0_.id as id1_0_0_, traineecen0_.centerId as 
centerid2_0_0_, traineecen0_.name as name3_0_0_ from trainee_center_info 
traineecen0_ where traineecen0_.id=?
   ```
   Your should change sharding_key or change your sql,  such as change to :
   ```
   Logic SQL: select traineecen0_.id as id1_0_0_, traineecen0_.centerId as 
centerid2_0_0_, traineecen0_.name as name3_0_0_ from trainee_center_info 
traineecen0_ where traineecen0_.centerId=?
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to