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

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

WBOY
Release: 2016-06-06 09:36:39
Original
1573 people have browsed it

脚本mysqlsqlpython

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template