0
我在t
多个表,我想加入他们所有的方式如下:SQLAlchemy的动态创建的连接
sa.select(['*'])
.select_from(
t[0]
.join(t[1], (t[1].c.id == t[0].c.id), full=True)
.join(t[2], (t[2].c.id == t[0].c.id), full=True)
...
.join(t[n], (t[n].c.id == t[0].c.id), full=True)
)
而是N在运行时发生变化。是否有可能动态生成此查询?