如何执行WITHsqlalchemy 中使用的SQL查询?
WITH foo AS (...), bar as (...) SELECT (...)
Run Code Online (Sandbox Code Playgroud)
http://www.postgresql.org/docs/9.1/static/queries-with.html
使用postgres.
有没有一种方法可以Query在SQLAlchemy中构建一个对象,该对象将等效于:
SELECT * FROM (VALUES (1, 2, 3)) AS sq;
Run Code Online (Sandbox Code Playgroud)
根据我在文档中看到的内容,该VALUES子句仅与一起使用INSERT。