diff --git a/README.md b/README.md index 8c3be2a..6f675d3 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ SHOW PROC '/backends'; ``` test sql + +使用一个副本 + ```sql create database if not exists testdb; drop table if exists testdb.test_table; @@ -53,7 +56,9 @@ create table if not exists testdb.test_table( ) ENGINE=olap UNIQUE KEY(name) -DISTRIBUTED BY HASH(name); +DISTRIBUTED BY HASH(name) +PROPERTIES("replication_num" = "1") +; insert into testdb.test_table values ("nick", 1), ("nick2", 3); select * from testdb.test_table; @@ -73,4 +78,4 @@ restart docker-compose up -d ``` -Note: 因为数据会被清除,本项目 only for dev \ No newline at end of file +Note: 因为数据会被清除,本项目 only for dev