I want to write a PLSQL query in the following way:
Select ...
FROM ...
WHERE
Date = '06/FEB/2011' + 7(days)
Im new to PLSQL, I've seen solutions such as date+1, but that requires by date to be inside a variable. I tired putting into a variable like the following:
declare date1 date;
begin
date1 := '06/FEB/2015';
select *
from
...
where
DATE_LABEL = date1 + 1;
end;
But it keeps giving me an error that is expecting an INTO statement in the SELECT. Im not sure what this means.
Thanks