I have declared a variable vGetDate = 2021-03-20 and want to use this value in my query to fetch the record after that date. eg: (select * from ABC where UpdatedDate > vGetDate).
This query will not give the desired result as the Dates need to be in a single quote.
I can't touch the variable declaration part(vGetDate) in order to put the dates in quotes. I can manipulate the where condition but not sure how to put variables in quotes.
quote_literalfunction in order to defend against injection attack. I've asked about this before, and there isn't anything. It's a big gap, but the challenge with filling the gap is that different SQL dialects need different logic.