I am using SQuirreL SQL Client Version 3.2.1 software and I want to declare a variable as
define dateFrom = '13/04/2012';
define dateTo = '13/04/2012'
And use it in my sql query like this
SELECT * FROM table_name WHERE TRUNC(column_name) BETWEEN to_date('&dateFrom','YYYY-MM-DD') AND to_date('&dateTo','YYYY-MM-DD');
But that will not work. How to define and use a variable in SQuirreL.
source
share