Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 12 Sep 2003 @ 14:40:17 GMT


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


Subj:   Re: Stored Procedure parms
 
From:   Narayan Murthy K S

But, can the SELECT in the INSERT/SELECT clause have something like :

'Insert into tab1 SELECT ' || colParam || ' FROM ' || tabParam ';';

{where colParam1 and tabParam are parameters passed to the stored procedure}

The above is what I referred to as restriction.

You could have something like

'Insert into table SELECT col1,col2..... FROM tab;'

passed to the DBC.SysExecSql stored procedure without any parameters involed as part of the FROM & select column clause. This would work fine, but the one mentioned above will throw an error.

I had a try of the above a long time back - the only resolution to the problem that I could find, is what I stated in my first reply{Store the string, export to a file and run the file }.

Narayan.



     
  <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