Archives of the TeradataForum
Message Posted: Fri, 26 Dec 2003 @ 18:18:11 GMT
<-- Anonymously Posted: Friday, December 26, 2003 12:46 -->
You can use DBC.SYSEXECSQL function in SP with your SQL string as input parm to execute the SQL dynamically. The DBC.COLUMNS give you the list of columns for a given table. The other option is using DBC.COLUMNS in BTEQ , EXPORT the dynamic SQL into a file and then execute the exported SQL file in next step.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|