Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: creating a procedure
I think that all you need is a ; before the end You need to close your statement within the procedure body
--
Peter McLarty E-mail: Peter.Mclarty_at_mincom.com Technical Consultant WWW: http://www.mincom.com APAC Technical Services Phone: +61 (0)7 3303 3461 Brisbane, Australia Mobile: +61 (0)402 094 238 Facsimile: +61 (0)7 3303 3048 =================================================A great pleasure in life is doing what people say you cannot do.
"Lance Prais" <lprais_at_ts.checkpoint.com>
Sent by: root_at_fatcity.com
24/01/2002 09:20 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Fax to: Subject: creating a procedure
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:
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lance Prais
INET: lprais_at_ts.checkpoint.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
This transmission is for the intended addressee only and is confidential information.
If you have received this transmission in error, please delete it and notify the
sender. The contents of this e-mail are the opinion of the writer only and are not
endorsed by the Mincom Group of companies unless expressly stated otherwise.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Peter.McLarty_at_mincom.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (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). Received on Wed Jan 23 2002 - 18:55:35 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message