Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 13 Feb 2008 @ 09:05:21 GMT


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


Subj:   Re: How to write procedure in teradata
 
From:   sreenivasa.akula

Thank you McCall...

Exactly we can't use select stmt directly inside the brases..(insert into table values('sel current_date') it is wrong..

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)


thanks yaar



     
  <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