Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Creating Stored Procedure in Oracle 7.3
Fabio wrote:
> In article <J42dnQ18UYcYvcXcRVn-hA_at_comcast.com>, mcstockX_at_Xenquery
> says...
>
>
> Mark, thanks for your reply.
>
>
>>other issues you need to address: >>[_] if possible get version 9i or 10g of oracle, 7.3 is very obsolete.
>>[_] you don't need to use a SELECT statement to get the value of SYSDATE, >>you can just assign it directly to a variable (see 'Assignments' in chapter >>2 of the PL/SQL manual)
set serveroutput on
DECLARE x dual.dummy%TYPE;
BEGIN
SELECT dummy
INTO x
FROM dual;
dbms_output.put_line(x);
END;
/
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Mon Sep 27 2004 - 21:39:05 CDT