mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 20:32:56 +00:00
feat: support REPLACE INTO statement (#5820)
* feat: support replace into * feat: support replace into
This commit is contained in:
@@ -9,6 +9,10 @@ INSERT INTO integers VALUES (1), (2), (3), (4), (5);
|
||||
|
||||
Affected Rows: 5
|
||||
|
||||
REPLACE INTO integers VALUES (6), (7);
|
||||
|
||||
Affected Rows: 2
|
||||
|
||||
SELECT * FROM integers;
|
||||
|
||||
+-------------------------+
|
||||
@@ -19,6 +23,8 @@ SELECT * FROM integers;
|
||||
| 1970-01-01T00:00:00.003 |
|
||||
| 1970-01-01T00:00:00.004 |
|
||||
| 1970-01-01T00:00:00.005 |
|
||||
| 1970-01-01T00:00:00.006 |
|
||||
| 1970-01-01T00:00:00.007 |
|
||||
+-------------------------+
|
||||
|
||||
-- Test insert with long string constant
|
||||
|
||||
@@ -5,6 +5,8 @@ CREATE TABLE integers (
|
||||
|
||||
INSERT INTO integers VALUES (1), (2), (3), (4), (5);
|
||||
|
||||
REPLACE INTO integers VALUES (6), (7);
|
||||
|
||||
SELECT * FROM integers;
|
||||
|
||||
-- Test insert with long string constant
|
||||
|
||||
Reference in New Issue
Block a user