for example: create table t1 (a int, b int) dbpartition by hash (a*31+b) dbpartitions 2 tbpartition by hash (a*31+b) tbpartitions 2
for example: create table t1 (a int, b int) dbpartition by hash (a31+b) dbpartitions 2 tbpartition by hash (a31+b) tbpartitions 2