2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS insert_fewer_columns;
|
|
|
|
CREATE TABLE insert_fewer_columns (a UInt8, b UInt8) ENGINE = Memory;
|
|
|
|
INSERT INTO insert_fewer_columns (a) VALUES (1), (2);
|
|
|
|
SELECT * FROM insert_fewer_columns;
|
2017-03-06 19:54:55 +00:00
|
|
|
|
|
|
|
-- Test position arguments in insert.
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS insert_fewer_columns_2;
|
|
|
|
CREATE TABLE insert_fewer_columns_2 (b UInt8, a UInt8) ENGINE = Memory;
|
|
|
|
INSERT INTO insert_fewer_columns_2 SELECT * FROM insert_fewer_columns;
|
|
|
|
SELECT a, b FROM insert_fewer_columns;
|
|
|
|
SELECT a, b FROM insert_fewer_columns_2;
|
2017-03-06 19:54:55 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS insert_fewer_columns_2;
|
|
|
|
DROP TABLE insert_fewer_columns;
|