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 2022/09/20 04:30:57 UTC

[GitHub] [shardingsphere] Qianyi951015 commented on issue #21061: No error exception when Alter unexist sharding binding table rule

Qianyi951015 commented on issue #21061:
URL: https://github.com/apache/shardingsphere/issues/21061#issuecomment-1251821857

   @yx9o  Hi here is an example for creating a sharding table rule
   ```
   CREATE SHARDING TABLE RULE t_order_item (
   DATANODES("resource_${0..1}.t_order_item_${0..1}"),
   DATABASE_STRATEGY(TYPE="standard",SHARDING_COLUMN=user_id,SHARDING_ALGORITHM(TYPE(NAME="inline",PROPERTIES("algorithm-expression"="resource_${user_id % 2}")))),
   TABLE_STRATEGY(TYPE="standard",SHARDING_COLUMN=order_id,SHARDING_ALGORITHM=table_inline),
   KEY_GENERATE_STRATEGY(COLUMN=another_id,KEY_GENERATOR=snowflake_key_generator)
   );
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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