随笔分类 - mysqlclient
摘要:python 安装 mysqlclient 库 安装 mysqlclient 时可能会报错,缺少mysql_config,参考文档https://pypi.org/project/mysqlclient/ 安装 MySQL development headers and libraries Debi
阅读全文
摘要:使用mysqlclient执行存储过程时,按正常的方法无法获取输出参数。使用如下方法获取: conn = MySQLdb.connect(**self.settings)cursor = conn.cursor()args = ('in', 'in', 'out') # 两个输入参数,一个输出参数c
阅读全文
摘要:在连续执行存储过程,并且存储过程有返回查询结果时,报错2014 Commands out of sync; you can't run this command now; 参考https://blog.csdn.net/ice4026/article/details/37592715 需要使用cur
阅读全文