Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 06 Jan 2004 @ 14:01:56 GMT


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


Subj:   Re: Populating Explain output to a Table.
 
From:   Geoffrey Rommel

  For some performance analysis comparison tests we need the SQL Explain output to be stored to a table. Has anyone tried this or something similar before?  



If you don't mind writing a little code, you can do this in C or Perl. Here's some pseudocode:

connect;
declare cursor E for Explain results;
prepare "explain ...";
open E;
for each row fetched from E
   insert E into another table
end for;
close E;

Of course, once it's in the table, you have to parse it, so maybe QCD would be better after all.



     
  <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