You can output in a csv file and then open it in EXCEL.
This could give you a head start, rest you can figure out in the utility manual
.logtable log_tbl
.logon <hostfileentry>/<username>,<pssword>
begin export sessions 2;
.export outfile c:\<output location>;
select cast(col1 as varchar(7)) || ',' || cast(col2 as varchar(8))
from tbl;;
.end report;
.logoff;
↧