feat: support REPLACE INTO statement (#5820)

* feat: support replace into

* feat: support replace into
This commit is contained in:
Yingwen
2025-04-03 11:22:43 +08:00
committed by GitHub
parent f797de3497
commit 2acecd3620
4 changed files with 29 additions and 1 deletions

View File

@@ -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

View File

@@ -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