Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 10 May 2006 @ 10:03:41 GMT


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


Subj:   Binding variable in sqltext
 
From:   BERRAFATO J-Michel

Hi all,

I'm trying to create request and I want to give the possibility to give a parameter for my request in BTEQ or SQLASSISTANT

For example, in the sample I want to give the possibility enter the value for dtames

     Select userid, QueryText,
            CAST( (CAST (collecttimestamp AS FORMAT 'HH')) AS CHAR(2)) As heure,
            Sum(TotalCPUTime) cpu,
            CAST( CAST (collecttimestamp AS FORMAT 'DD-MM-YYYY') AS
     CHAR(10)) As datemes
     >From DBQLogTbl
     WHERE datemes=('&' or  ':' or ????) datemes
     Group By 1,2,3,5;

Berrafato Jean-Michel



     
  <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