Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Update database-object-design.md #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ summary: 介绍如何设计数据库中的对象,如索引、字段类型等

## 1. 表的设计

1. TiDB 中的一张表的 RowID 是按照主键的字节序排序的(整数类型的主键我们会使用特定的编码使其字节序和按大小排序一致)。使在 `CREATE TABLE` 语句中不显式地创建主键,TiDB 也会为该表分配一个隐式主键
1. TiDB 中的一张表的 RowID 是按照主键的字节序排序的(整数类型的主键我们会使用特定的编码使其字节序和按大小排序一致)。即使在 `CREATE TABLE` 语句中不显式地创建主键,TiDB 也会为该表分配一个隐式主键

2. 在进行 TiDB 表设计过程中,有以下几点需要注意

Expand Down