Skip to content

Commit

Permalink
highlight SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperphoton committed Jan 17, 2022
1 parent 7d265c6 commit e55f3d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions keygen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A Distributed Primary Key generator.
Keygen id contains a table index in it's bit sequence, so we can locate the sharding table whitout the sharding key.
For example, use Keygen id, we could use:

```
```sql
select * from orders where id = 76362673717182593
```

Use snowflake, you should use:

```
```sql
select * from orders where id = 76362673717182593 and user_id = 100
```

Expand Down
4 changes: 2 additions & 2 deletions keygen/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
Keygen id 在其比特序列中包含了表索引,这样可以在没有分表键的情况下定位分表。
例如,使用 Keygen id,我们可以:

```
```sql
select * from orders where id = 76362673717182593
```

使用雪花算法,则需要:

```
```sql
select * from orders where id = 76362673717182593 and user_id = 100
```

Expand Down

0 comments on commit e55f3d4

Please sign in to comment.