Mattia Poli
unread,Nov 25, 2020, 11:37:44 AM11/25/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jDBI
Hi everyone, i have to execute the same query for Postgres, MySql, SqlServer and Oracle.
in some table i have column named uid , so in some databases i can execute easily :
"SELECT * FROM table WHERE uid = :uid".
In oracle instead , in order to use uid i have to escape it, so the column name must be "uid".
Indeed the query must be something like :
"SELECT * FROM table WHERE \"uid\" = :uid"
Is it possible somehow to tell jdbi to do this out of the box?
Maybe with sqlStatementFactory or JDBI plugin i don't know.
Thanks for heping me.