Skip to content

Commit f66267c

Browse files
committed
[docs] Fix: Correct column specification in T table INSERT statements
1 parent b2f9c2f commit f66267c

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
@@ -130,8 +130,8 @@ be generated. For example, the following Flink SQL statements illustrate this be
130130
SET execution.runtime-mode = batch;
131131

132132
-- insert to records with the same primary key k=1
133-
INSERT INTO T (k, v1) VALUES (1, 2.0,'apple');
134-
INSERT INTO T (k, v1) VALUES (1, 4.0,'banana');
133+
INSERT INTO T (k, v1, v2) VALUES (1, 2.0, 'apple');
134+
INSERT INTO T (k, v1, v2) VALUES (1, 4.0, 'banana');
135135

136136
-- delete the record with primary key k=1
137137
DELETE FROM T WHERE k = 1;
@@ -144,14 +144,14 @@ SELECT * FROM T;
144144
Generate the following output in the Flink SQL CLI:
145145

146146
```
147-
+-----------------------------+
147+
+------+------+------+--------+
148148
| op | k | v1 | v2 |
149149
| ---- | ---- | ---- | ------ |
150150
| +I | 1 | 2.0 | apple |
151151
| -U | 1 | 2.0 | apple |
152152
| +U | 1 | 4.0 | banana |
153153
| -D | 1 | 4.0 | banana |
154-
+-----------------------------+
154+
+------+------+------+--------+
155155
4 rows in set
156156
```
157157

0 commit comments

Comments
 (0)