Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 12 Feb 2008 @ 13:54:18 GMT

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

Subj:   Re: How to write procedure in teradata
From:   Anomy Anom

<-- Anonymously Posted: Tue, 12 Feb 2008 07:53 -->

You can't put a Select statement inside a VALUES clause, only literals or host variables.

You can do something like INSERT INTO myTable SELECT CURRENT_DATE Or SET myLocalVar = CURRENT_DATE; INSERT INTO myTable VALUES (myLocalVar)

  <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: 28 Jun 2020