我正在浏览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方法。你知道吗
connection = connectionForURI(connection_string)
正是您要查找的连接对象。它has方法queryAll
。你知道吗相关问题 更多 >
编程相关推荐