Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> a newwbie's question
I'm having trouble with building a simple PL/SQL procedure. Can somebody tell me what I'm missing, please?
Create or replace Procedure add_emp
is
Begin
Accept v_name prompt 'Enter the employee s name: ' ; Accept v_id prompt 'Enter the employee s id: ' ; Accept v_date prompt 'Enter the effective date using MM/DD/YYYY format:' ;
to_date('&&v_date', 'MM/DD/YYYY' )
) ;
commit;
END add_emp;
The body of this, the Accept statements and insert statement, work
just fine when
run as a script file (Add_Emp.SQL). I'm clearly missing something, but
be danged if I see it.
Thanks for your help. Received on Thu Oct 16 1997 - 00:00:00 CDT