Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 netezza 中插入批量数据时出现以下错误:
错误:客户端回滚事务
查询是
INSERT INTO source SELECT * FROM EXTERNAL '%sourcefile.20130201%' USING (REMOTESOURCE 'jdbc' DELIM '|');
不要附加外部表,而是先尝试创建一个,然后附加到分布式表。尝试这样的事情:
CREATE EXTERNAL TABLE TEMP ( FIELD datatype, ... ... ) USING (FILE('%sourcefile.20130201%') REMOTESOURCE 'jdbc' DELIM '|');
然后,一旦您创建了外部表,您可以使用以下命令附加到分布式表:
INSERT INTO NZTABLE SELECT * FROM TEMP