how can i define and use variables?
I have a query with a bunch of hardcoded dates. i'd like to replace them with a variable, which i can define before the query. I'm running a simple query batch.
%var1% = '2001-01-01'
select * from t1 where dt = %var1%
something like this.
I have a query with a bunch of hardcoded dates. i'd like to replace them with a variable, which i can define before the query. I'm running a simple query batch.
%var1% = '2001-01-01'
select * from t1 where dt = %var1%
something like this.