strongduanmu commented on issue #13937:
URL: 
https://github.com/apache/shardingsphere/issues/13937#issuecomment-986380998


   Hi @oneslideicywater, thank you for your question. The 
`defaultDatabaseStrategy` is only used when the sharding table is not 
configured with a `databaseStrategy`. If the sharding table needs to customize 
the database sharding strategy, just define the `databaseStrategy` under the 
table.
   
   ```yaml
       t_employee:
         actualDataNodes: ds_${0..1}.t_employee_${0..3}
         tableStrategy:
           standard:
             shardingColumn: id
             shardingAlgorithmName: t_employee_inline
         #  explictly set database-spliting rules here, so the tables doesn't 
to be forced have a column user_id 
         databaseStrategy: 
           standard:
             shardingColumn: id  
             shardingAlgorithmName: database_inline_employee
   ```


-- 
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