Skip to content

Commit 797a46f

Browse files
ZmmBigdatawuchong
authored andcommitted
[docs] Fix the INSERT statement in "PrimaryKey Table" page (#1406)
1 parent b7a1e86 commit 797a46f

File tree

1 file changed

+4
-4
lines changed
  • website/docs/table-design/table-types/pk-table

1 file changed

+4
-4
lines changed

website/docs/table-design/table-types/pk-table/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ be generated. For example, the following Flink SQL statements illustrate this be
128128
SET execution.runtime-mode = batch;
129129

130130
-- insert to records with the same primary key k=1
131-
INSERT INTO T (k, v1) VALUES (1, 2.0,'apple');
132-
INSERT INTO T (k, v1) VALUES (1, 4.0,'banana');
131+
INSERT INTO T (k, v1, v2) VALUES (1, 2.0, 'apple');
132+
INSERT INTO T (k, v1, v2) VALUES (1, 4.0, 'banana');
133133

134134
-- delete the record with primary key k=1
135135
DELETE FROM T WHERE k = 1;
@@ -142,14 +142,14 @@ SELECT * FROM T;
142142
Generate the following output in the Flink SQL CLI:
143143

144144
```
145-
+-----------------------------+
145+
+------+------+------+--------+
146146
| op | k | v1 | v2 |
147147
| ---- | ---- | ---- | ------ |
148148
| +I | 1 | 2.0 | apple |
149149
| -U | 1 | 2.0 | apple |
150150
| +U | 1 | 4.0 | banana |
151151
| -D | 1 | 4.0 | banana |
152-
+-----------------------------+
152+
+------+------+------+--------+
153153
4 rows in set
154154
```
155155

0 commit comments

Comments
 (0)