I use SQLAlchemy to create database independent queries.
I ran into one problem with the function to_char.
Consider a simple query:
select to_char(id,'999') from xyz
It works on Postgres, but MySQL does not support it.
How can I make this query database independent with SQLAlchemy?
source
share