Reputation: 1
I would like to set up a query in a stored procedure like:
select * from table where xx between '2010' and '2011'
To use some variable (time) instead of the static timestamp. However once I set up the variable and query like
"select * from table where xx between time and time"
or
"select * from table where xx between 'time' and 'time'",
it doesn't work, could you help me
thx in advance
Upvotes: 0
Views: 144
Reputation: 16362
It would probably be easier if we had real code, but, based on what you've provided, I'd say:
Hope that helps.
Upvotes: 1