12 lines
282 B
Plaintext
12 lines
282 B
Plaintext
drop database if exists question_mark_db;
|
|
create database question_mark_db;
|
|
use question_mark_db;
|
|
|
|
create table t1(c1 int primary key, c2 int) partition by hash(c1 + 1) partitions 3
|
|
|
|
select * from t1 where c1=0
|
|
select * from t1 where c1=1 and c2=1
|
|
|
|
drop database question_mark_db;
|
|
|