Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 authored Aug 16, 2022
1 parent 25c2d9f commit 6d1aa7e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ SHOW PROC '/backends';
```

test sql

使用一个副本

```sql
create database if not exists testdb;
drop table if exists testdb.test_table;
Expand All @@ -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;
Expand All @@ -73,4 +78,4 @@ restart
docker-compose up -d
```

Note: 因为数据会被清除,本项目 only for dev
Note: 因为数据会被清除,本项目 only for dev

0 comments on commit 6d1aa7e

Please sign in to comment.