Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 30 Jul 2002 @ 05:36:38 GMT

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

Subj:   Re: Macro Possibilities?
From:   Sanjaya Nagabhushan

You could attempt something similar to the example quoted in "Teradata RDBMS SQL Reference Volume-6" on Dynamic SQL statements within a stored procedure

CREATE PROCEDURE new_sales_table(my_table VARCHAR(30),
my_database VARCHAR(30))

DECLARE sales_columns VARCHAR(128)
DEFAULT '(item INTEGER, price DECIMAL(8,2), sold

CALL DBC.SysExecSQL('CREATE TABLE ' || :my_database || '.' || :my_table || :sales_columns);



  <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: 27 Dec 2016