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

Home -> Community -> Usenet -> c.d.o.misc -> Re: ORACLE WEB SERVER

Re: ORACLE WEB SERVER

From: Lun Wing San (Oracle) <wslun_at_qrcsun.qrc.org>
Date: 1997/03/01
Message-ID: <3318E4D6.78B7@qrcsun.qrc.org>#1/1

Matthew Montebello wrote:
>
> Could anyone direct me to some html examples where the Oracle Web Server
> is used to make queries, updates etc.. to tables.

  For example, you want to keep a visit count. You will use update. If you want to find out the results, you will use query. There is an example:

PROCEDURE testing IS
CURSOR c IS
SELECT * FROM TABLE1;
BEGIN

      for rec in c loop
          htp.print(rec.field1);
          update table2 set field2 = rec.field1 where field2_pk = rec.field1;
          htp.br;
      end loop;
      commit;

END; NB: htmlOpen is neglected.       
---
Name   : Lun Wing San (Certified Oracle Database Administrator)

Title  : Oracle Application Developer of Hong Kong Productivity Council
         Oracle Database Administrator and System Administrator of QRC
Phone  : (852)27885841

This posting represents the personal opinions of the author. It is not the
official opinion or policy of the author's employer. Warranty expired when you
opened this article and I will not be responsible for its contents or use.
Received on Sat Mar 01 1997 - 00:00:00 CST

Original text of this message

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