I am having a testing.sql program. First list line I receive the command line argument with define run_date = '&1' and use it in cursor.
Argument I want it as string '24/02/2011' and I use it in comparison in sql queries and cursors.
Select *
from bill_file b
where to_char(b.initial_process_date_time,'DD/MM/YYYY')=&run_date;
When I call the script from sqlplus it's giving errors. Not sure how I can receive string arguments.
Here is how I tried:
SQL> @testing.sql 24/02/2011