|
|
Archives of the TeradataForum
Message Posted: Wed, 10 May 2006 @ 10:03:41 GMT
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
| |