Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 21 Feb 2002 @ 19:03:56 GMT


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


Subj:   BTEQ Question
 
From:   Tony Howe

I am running the following query via BTEQ against a table with 300+ million rows:

 .SET RETCANCEL
.SET RETLIMIT 100
LOCKING CPCLMD.QCLMD002 FOR ACCESS
  SELECT AQBICLS, ALLIAAA
   FROM  CPCLMD.QCLMD002;
.QUIT;

I only want the first 100 rows then end the query, thus the RETCANCEL statement, but the query still appears to be processing thru the entire table before bring back my first 100. Isn't the RETCANCEL supposed to cancel the request once the RETLIMIT is reached?? Appears to not be doing that. The SPOOL space being used goes up extrememly high, this is what tells me it is still reading thru the entire table. Any ideas???

Thanks, Tony.



     
  <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