I am not one to usually shout RTFM from the mountain top, but I somehow feel
compelled because I have read a couple of responses that hadn't mentioned
that age old mantra.

Your procedure might be salvagable by putting a ; at the end of your select
statement, but I don't believe it will do anything more than compile.  You
need to look into The Oracle Docs on PL/SQL.  Because while you might have
created a procedure, it isn't very procedural.

Steve McCLure

-----Original Message-----
Sent: Wednesday, January 23, 2002 3:20 PM
To: Multiple recipients of list ORACLE-L


I want to create a stored procedure that takes the following information and
puts it into a table.  How would I do this?

CREATE OR REPLACE Procedure Used_license as
Begin
Select A.Pc_session_id From pt_client_event A where A.pc_event_op = 'LAUNCH'
and A.pc_date >=SYSDATE -1
minus
Select B.Pc_session_id From pt_client_event B where B.Pc_event_op = 'LOGOUT'
and B.pc_date >=SYSDATE -1
End;


I am tying to do it this way but getting errors:

PLS-00103: Encountered the symbol "END" when expecting one of the following:

   * & - + ; / for mod rem an exponent (**) and or group having
   intersect minus order start union where connect ||



--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lance Prais
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steve McClure
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to