DBZ-7119 Allow empty column list in INSERT
This commit is contained in:
parent
b834a3a66a
commit
4f485caca3
@ -881,7 +881,7 @@ insertStatement
|
||||
IGNORE? INTO? tableName
|
||||
(PARTITION '(' partitions=uidList? ')' )?
|
||||
(
|
||||
('(' columns=fullColumnNameList ')')? insertStatementValue (AS? uid)?
|
||||
('(' columns=fullColumnNameList? ')')? insertStatementValue (AS? uid)?
|
||||
| SET
|
||||
setFirst=updatedElement
|
||||
(',' setElements+=updatedElement)*
|
||||
|
@ -23,6 +23,7 @@ SELECT * FROM f3p1 WHERE 1;
|
||||
#begin
|
||||
-- insert base syntax
|
||||
insert ignore into t1(col1, col2, col3) values ('abc', 0, .12), ('adfasdf',23432, -.12);
|
||||
INSERT INTO test_auto_inc () VALUES ();
|
||||
-- http://dev.mysql.com/doc/refman/5.6/en/insert.html
|
||||
INSERT INTO tbl_name (col1,col2) VALUES(col2*2, 15);
|
||||
INSERT INTO tbl_name (col1,col2) VALUES(15,col1*2);
|
||||
@ -54,4 +55,4 @@ INSERT INTO tbl (.tbl.a) SELECT * FROM another_table;
|
||||
#begin
|
||||
---https://dev.mysql.com/doc/refman/8.0/en/insert.html
|
||||
INSERT INTO t1 (a,b,c) VALUES (1,2,3),(4,5,6) AS new ON DUPLICATE KEY UPDATE c = new.a+new.b;
|
||||
#end
|
||||
#end
|
||||
|
Loading…
Reference in New Issue
Block a user