Oracle sqlplus HTML report - alternating rows color -


i use oracle sqlplus "set markup html on" convert query output html report -

it's simlpe way publish database report online.

i'm missing 1 thing - alternating colors every other row, helpful while viewing wide reports.

is there way embed html color every row, make dependent on mod(rownum/2) - even/odd row number ?

thank !

i don't think there is, using set markup html on. have write own markup like:

select '<tr style="color:'         || case mod(rownum,2) when 0 'red' else 'green' end        || '"><td>' || ename || '</td></tr>' data  ( select ename emp order ename ); 

then add surrounding table tags using prompts or whatever.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -