|
|
Archives of the TeradataForum
Message Posted: Tue, 06 Jan 2004 @ 14:01:56 GMT
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.
| |