Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 从select查询插入到表中_Sql_Teradata_Temporal - Fatal编程技术网

Sql 从select查询插入到表中

Sql 从select查询插入到表中,sql,teradata,temporal,Sql,Teradata,Temporal,这里表A是非时态的。它只有id列和类型列 插入失败3707:语法错误 基本上,我想将时态select查询的结果插入到非时态volatile表中 任何帮助都将不胜感激。这应该是正确的语法: Insert into TableA as ( nonsequenced validtime select id,type from TableB ); nonsequenced validtime Insert into TableA select id,type from TableB;

这里表A是非时态的。它只有id列和类型列

插入失败3707:语法错误

基本上,我想将时态select查询的结果插入到非时态volatile表中


任何帮助都将不胜感激。

这应该是正确的语法:

Insert into TableA as
( nonsequenced validtime
 select id,type from TableB );
nonsequenced validtime
Insert into TableA
select id,type from TableB;