ALTER DEFAULT SHARDING STRATEGY

    • When using the complex sharding algorithm, multiple sharding columns need to be specified using SHARDING_COLUMNS;
    • Alter a default sharding table strategy
    1. ALTER DEFAULT SHARDING TABLE STRATEGY (
    2. TYPE="standard", SHARDING_COLUMN=user_id, SHARDING_ALGORITHM(TYPE(NAME="inline", PROPERTIES("algorithm-expression"="t_order_${user_id % 2}")))

    , DEFAULT, SHARDING, DATABASE, TABLE, STRATEGY, , SHARDING_COLUMN, SHARDING_COLUMNS, SHARDING_ALGORITHM, NAME, PROPERTIES