|
Archives of the TeradataForumMessage Posted: Fri, 12 Sep 2003 @ 14:40:17 GMT
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.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||