![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 18 Jul 2015 @ 02:34:46 GMT
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;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||