The following is an example procedure code,
create or replace procedure pro_test(start_date date, end_date date)
is
begin
insert into test1 select col1, col2, col3 from main where range_date between start_date and end_date;
exception
< what are the exception I need to capture >
end;
/
Q1: Is the correct way to pass the date directly inside the procedure? Q2: If not, can I pass varchar inside the procedure to convert the date to part of the declaration? Q3: At the beginning of work, am is used between the operator, can I pass the procedure parameter directly?
When performing this procedure exec pro_test('10102015','30102015');What do I need to specify between the sentences? is it enough between start_date and end_date or do i need to mask the date format?
can someone help me clarify this?
source
share