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/02/17 03:12:03 UTC

[GitHub] [shardingsphere] wjf870128 commented on issue #15442: [DistSQL]CREATE SHARDING TABLE RULE report syntax

wjf870128 commented on issue #15442:
URL: https://github.com/apache/shardingsphere/issues/15442#issuecomment-1042526189


   > @wjf870128 Thanks your feedback, 5.1.0 The syntax has been adjusted, `GENERATED_KEY` has been replaced with `KEY_GENERATE_STRATEGY`, please refer to https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/
   
   Thanks,that's ok!
   
   CREATE SHARDING TABLE RULE t_order (
   DATANODES("ts_${0..3}.t_order_${0..3}"),
   DATABASE_STRATEGY(TYPE=standard,SHARDING_COLUMN=user_id,SHARDING_ALGORITHM=database_inline),
   TABLE_STRATEGY(TYPE=standard,SHARDING_COLUMN=order_id,SHARDING_ALGORITHM=table_inline),
   KEY_GENERATE_STRATEGY(COLUMN=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