我很难在Redshift中插入多行。以下是SQL查询:
CREATE TABLE tblA (
column1 bigint primary key,
column2 varchar(255) default null,
column3 varchar(255) default null,
recordModifiedTimestamp timestamp
);
INSERT INTO tblA (column1, column2, column3) VALUES
(1, "DES", "article"),
(2, "DES", "slideshow"),
(3, "DES", "video");
当我运行上一个查询时,这是我得到的:
ERROR: column "des" does not exist in tblA
我错过了什么吗?
答案 0 :(得分:2)
好吧,多亏了Gordon Linoff,这是正确的SQL查询:
INSERT INTO tblA (column1, column2, column3) VALUES
(1, 'DES', 'article'),
(2, 'DES', 'slideshow'),
(3, 'DES', 'video');
难以置信! : - )