我能够与pypyodbc如下 cur.execute("delete from table_a where a ='a';").commit()
然而在Python执行删除SQL查询,我无法以一个子查询运行删除SQL cur.execute("delete from table_a where a in (select a from table_b);").commit()
将返回 pyp
我试图运行我在Ubuntu服务器上编写的脚本。 我使用pypyodbc连接到脚本中的服务器上的数据库,它在Windows上效果很好。 当我尝试我的Ubuntu服务器上运行它,我得到以下错误: pypyodbc.Error: (u'IM002', u'[IM002] [unixODBC][Driver Manager]Data source name not found, and no defaul