I'm working on an application that runs on multiple databases, many of which have their own way of quoting reserved words as field names for example For example
select `key` from mytable
or
select "key" from mytable
or
select [key] from mytable
I was wondering if there was a preprocessor command (or some other mechanism) that could automatically determine the correct quote characters to use for a given database. And yes (before someone comments) I shouldn't use reserved words for field names, but the schema is already predefined (a couple decades ago).