I am using the 'SET MARKUP HTML ON' option to output a result table from a query to html using SQLPLUS.
I want to be able to explicitly specify that some columns need to be a specific pixel width.
Is this possibly using the 'SET MARKUP HTML OPTION' ?? I would rather not have to just use the regular spooling option, and create the html table manually.
Edited:
I have tried something like:
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP OFF
SPOOL file.html
column aString heading "New Heading"
column aNumber heading "<p style='width:100px'>800SetColA</p>"
SELECT 'Some long String' aString, 3 aNumber FROM dual
UNION ALL
SELECT 'Some other String' aString, 9 aNumber FROM dual;
SPOOL OFF
Which does not work!! the width style tag needs to be set on the th tag and not the p tag.