I'm trying to run a plsql query in SQL Developer, and I'm using variables.
I try to run the following to see how variables work:
define FromDate varchar2 = '02-03-2019'
select &&FromDate from dual;
-- OR
define FromDate = '02-03-2019'
select &&FromDate from dual;
This is the result in both cases:
Why is the result "-2020" and how would I be able to use FromDate in something like this?
select * From TABLE where test_date >= to_date(&&FromDate, 'MM-DD-YYYY')
