如何在 SQL 查询中表达“c”列,如下所示:
SELECT a, b, 0 AS c
FROM mytable
SQLAlchemy 代码:
session.query(mytable.c.a, mytable.c.b, {???, c is a dynamic column})
如何在 SQL 查询中表达“c”列,如下所示:
SELECT a, b, 0 AS c
FROM mytable
SQLAlchemy 代码:
session.query(mytable.c.a, mytable.c.b, {???, c is a dynamic column})