Home  >  Article  >  Database  >  mysql-python 脚本中sql语句执行失败的问题

mysql-python 脚本中sql语句执行失败的问题

WBOY
WBOYOriginal
2016-06-06 09:36:391520browse

脚本mysqlsqlpython

如题,一句sql语句,在mysql命令行下可以执行并且有结果,但是,放在一段python脚本里,
db.cursor.excute(sql)怎么都是0,这是怎么回事,求破
(我用的pymysql包做数据库连接池,autocommit为Ture)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn