I need execute 2 select in SQLAlchemy. For example:
select1 = Session.query(col1, col2, col3, col4).filter(...)
select2 = Session.query(col1, "", "", col4).filter(...)
result = select1.union(select2).all()
The problem is that. I don’t know how to write “” value in select2 with SQLAlchemy.
Thanks.
You probably want some combination of
column,literal_columnornull, which are in thesqlalchemy.sqlmodule: