We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RIGHT_SHIFT(字段名,位移数)
仅支持数值类型
分片值右移二进制位数,然后按分片数量取余
create table travelrecord( ... )ENGINE=InnoDB DEFAULT CHARSET=utf8 dbpartition by RIGHT_SHIFT(id,4) dbpartitions 3 tbpartition by RIGHT_SHIFT(user_id,4) tbpartitions 3;