Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 18 Jul 2015 @ 02:34:46 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: CTE along with INSERT
 
From:   Pluebell, Fred

Correct, the WITH is considered part of the SELECT. Teradata does allow similar syntax where the WITH is moved between the INSERT and the SELECT:

     Insert into table_2
     WITH CTE (a,b,c) as
     (Select a,b,c from table_1 )
     Select * from CTE;


     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023