You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/03/01 10:23:24 UTC

[GitHub] [shardingsphere] jingshanglu edited a comment on issue #9494: When I try to create a sharding rule or datasource, I encountered this........ the corresponding version is 5.0 alpha

jingshanglu edited a comment on issue #9494:
URL: https://github.com/apache/shardingsphere/issues/9494#issuecomment-787820170


   @bestksl plz refer 
   ```
   CREATE SHARDING RULE (
   t_order [resource(ds0, ds1)] [order_id HASH_MOD("sharding-count"=4)] [generated_key another_id snowflake("worker-id"=123)],
   t_item item_id mod("sharding-count"=2)
   [binding_table(t_order t_item) ...]
   [default_table_strategy HASH_MOD("sharding-count"=4)]
   [broadcast_tables(t_order, t_item)]
   )
   
   ADD RESOURCE (
   primary_ds=127.0.0.1:3306:demo_ds_0:root:pwd,
   replica_ds_0=127.0.0.1:3306:demo_ds_0:root,
   replica_ds_1=127.0.0.1:3306:demo_ds_0:root
   );
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org