Skip to content

Commit

Permalink
update doc ,add truncate support
Browse files Browse the repository at this point in the history
  • Loading branch information
silenceper committed Jan 6, 2017
1 parent 2558608 commit 7bf0ad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/KingDoc/kingshard_support_sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ kingshard在非分表的情况下支持绝大部分MySQL语法和协议,包括
- DROP INDEX Syntax
- ALTER TABLE Syntax
- TRUNCATE TABLE Syntax

分表的情况下支持这些语法,但需要在SQL中加注释,例如:
`/*node1*/create table stu_0000(id int, name char(20));`
这样kingshard就会将该SQL转发到node1节点的Master上。

**注:**
`truncate`如果不指定节点注释则会将所有分表都清空,例如:`truncate stu`
###3.2 数据库DML语法
- INSERT Syntax
- INSERT DELAYED Syntax 不支持
Expand Down

0 comments on commit 7bf0ad8

Please sign in to comment.