Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: webdb PLSQL

Re: webdb PLSQL

From: Kirilius <kiril_russevNOkiSPAM_at_excite.com.invalid>
Date: 2000/05/12
Message-ID: <0a7b5e7c.397471a0@usw-ex0103-086.remarq.com>#1/1

You should examine the package called "HTP". It has a number of routines that encapsulate HTML almost entirely. I find the most useful htp.print procedure. Here is an example:

<ORACLE>

declare
 cursor c_emp is
  select ename, sal
  from scott.emp;
begin
 for tmp in c_emp loop
   if sal > 10000 then
     htp.print('<font color="red">'||tmp.ename||'</font><br>');    else
     htp.print('<font color="green">'||tmp.ename||'</font><br>');    end if;
 end loop;
end;
</ORACLE>

That's it - give it a try.

Received on Fri May 12 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US