我在浏览SQL statements下指定的指令时,遇到了这样的问题:
rows = connection.queryAll(query)我们从哪里获得这个连接对象?因为我确信这不是从该语句中获得的对象
connection = connectionForURI(connection_string)我还尝试像这样使用dbconnection:
select = Select(['name', 'AVG(salary)'], staticTables=['employees'], groupBy='name')
query = dbconnection.sqlrepr(select)但是dbconnection没有queryAll方法。
发布于 2017-05-08 00:09:04
connection = connectionForURI(connection_string)就是您正在寻找的connection对象。It has方法queryAll。
https://stackoverflow.com/questions/42837549
复制相似问题