腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
MySQLdb
fetcall
,
AttributeError
:“
int
”
对象
没有
属性
“”
fetchall
“”
python
、
mysql
、
mysql-python
import
MySQLdb
cur = mydb.cursor()results = command.
fetchall
() 但我得到了这个 Fi
浏览 58
提问于2017-07-05
得票数 3
回答已采纳
2
回答
AttributeError
:'NoneType‘
对象
没有
属性
’提取‘
python
、
mysql
、
mysql-connector
产出如下: def __initu
浏览 2
提问于2021-02-09
得票数 0
回答已采纳
2
回答
使用python获取MySQL数据库的列表
python
、
mysql
、
database
当前代码: serv =
MySQLdb
.connect(host = "localhost", user = "root", passwd = "abcdefg")
浏览 3
提问于2017-07-03
得票数 8
1
回答
返回Python查询'NoneType‘
对象
python
、
mysql
、
sql
、
python-3.x
mysql.connector.connect(**config)emailExist = cur.execute("""SELECT * FROM print(emailExist) emailExist =cur.execute(“”选择*从customerDetails“”).
fetchall
()
AttributeError
:'NoneType‘
浏览 1
提问于2020-01-20
得票数 0
1
回答
AttributeError
:“long”
对象
没有
属性
“”
fetchall
“”
python
、
mysql
、
flask
where username = " + stringify(request.form['username'])错误:
AttributeError
: 'long' object has no attribute '
fetchall
' 为什么不返回结果集呢?
浏览 0
提问于2012-11-16
得票数 7
回答已采纳
0
回答
我无法与mySQL建立连接
mysql
、
python-2.7
我的代码Con =
MySQLdb
.Connect(host="127.0.0.1", port=3306, user="root", passwd="xyz", db="testdb")
AttributeError
:“Connection”
对象
没有
属性
“”get_autocommit“”
浏览 4
提问于2016-07-08
得票数 0
回答已采纳
2
回答
Python
MySQLdb
执行返回
int
python
、
mysql
、
python-3.x
我通过pip为Mysql连接安装了
MySQLdb
。代码: def __init__(self): db = DB() result = db.query('SELECT id, name FROM test').
fetchall
id, name = r
浏览 5
提问于2017-01-23
得票数 0
回答已采纳
2
回答
Python
Mysqldb
游标
没有
属性
'
fetchAll
‘
python
、
mysql
、
mysql-python
我一直收到错误消息"
AttributeError
:'Cursor‘
对象
没有
’
fetchAll
‘
属性
“。我的rowCount是451,所有查询都正常。我研究过这个问题,大多数错误都涉及到在cursor.execute()的返回值上调用
fetchAll
(),但这不是我在这里要做的。localCursor.execute("DROP TABLE IF EXISTS products;") localCursor.execute("CREATE
浏览 25
提问于2019-01-29
得票数 0
1
回答
模块
对象
没有
属性
connect
mysql-python
我想在Python中执行以下代码来测试MySQL:db =
MySQLdb
.connnect(host = "localhost",db = "student")cursor.execute("select * from basic_info" )for x in range(0,numrows): row = cursor.
fe
浏览 5
提问于2013-01-23
得票数 1
回答已采纳
1
回答
模块提交:“
MySQLdb
”
对象
没有
“”
AttributeError
“”
属性
“”
python
、
mysql
、
mysql-python
我收到一个错误: File "write.py", line 18, in <module>
AttributeError
usr/bin/python con = db.connect(host='localhost', user='trevor', passwd"Error %d: %s&
浏览 0
提问于2015-02-21
得票数 2
1
回答
在SQL数据库中导入数据时出现"
AttributeError
:__exit__“
python
、
sql
然而,关于我的"with con“语句,我得到了
AttributeError
: exit (如下所示)。我读过类似错误的帖子,但我似乎无法修复我的错误。
浏览 75
提问于2020-04-18
得票数 1
1
回答
db.query(q) --
AttributeError
中的第34行:数据库实例
没有
'query‘
属性
。
python-2.7
、
phpmyadmin
我正在练习python中的数据库和使用Phpadmin数据库,并制作了我的表,但在db.query(q)的第34行,错误是:
AttributeError
:数据库实例
没有
属性
'query‘。import
MySQLdb
user = "root" db =
浏览 0
提问于2013-05-14
得票数 0
1
回答
在cursor.stored_results()调用中,抛出错误
AttributeError
:'DictCursor‘
对象
没有
属性
'stored_results’
python
、
mysql
、
flask
、
mysql-python
from flask import Flask, render_template, request, jsonify # print(result.
fetchall
_=="__main__":打印(R)和r类
浏览 11
提问于2019-10-13
得票数 0
1
回答
Psycopg2 -
AttributeError
:“NoneType”
对象
没有
属性
“”
fetchall
“”
python
、
postgresql
、
psycopg2
list_schemas = cursor.execute(sql_list_schemas)print('list_schemas.
fetchall
() = %s' % list_schemas.
fetchall
())conn = <connection object at 0x7f0e12eef050; dsn: 'user/postgres_db_schema.py"
浏览 0
提问于2015-10-02
得票数 7
回答已采纳
0
回答
AttributeError
:
int
对象
没有
属性
python
return Point(x, y) print p1 + [10, 12]
attributeError
:
int
object has no attribute 如何解决这个问题呢?
浏览 5
提问于2016-07-07
得票数 0
1
回答
AttributeError
:'tuple‘
对象
没有
属性
'encode’-
MySQLdb
Python
python
、
mysql
、
pycharm
、
encode
、
mysql-python
并得到以下错误: 当我在查询中硬编码ID的值时,我会得到结果。但由于某种原因,当我传入一个参数时,它不起作用。
浏览 1
提问于2016-02-11
得票数 4
回答已采纳
1
回答
python mysql自定义重新连接类不会使服务器连接保持打开状态
python
、
mysql
、
database
、
exception
、
connection
class DB: def connect( self ): self.conn =
MySQLdb
.connect("localhost", "xxxx", "xxxxxx", "Systems") except (
AttributeError
,
Mysqldb
.OperationalErrorcursor = self.conn.
浏览 1
提问于2011-12-29
得票数 1
回答已采纳
1
回答
AttributeError
:“请求”
对象
没有
属性
“order_data”
python
、
django-rest-framework
' cursor.execute(order_query) order_result = cursor.
fetchall
request.order_data
浏览 5
提问于2020-02-28
得票数 0
回答已采纳
1
回答
AttributeError
:'
int
‘
对象
没有
属性
'taxonomy_features’,当我试图从数据库中检索一些数据时,会发生错误
mysql
、
python-2.7
Users/HP/PycharmProjects/first/zb.py",第58行
AttributeError
:
int
对象
没有
属性
'taxonomy_features‘ import
MySQLdb
impor
浏览 2
提问于2017-03-11
得票数 0
2
回答
从已建立的mysql连接中获取用户
python
、
mysql-python
我已经使用MySQL python库建立了一个
MySQLdb
连接。由于初始连接发生在完全不同的位置,所以我希望从给定的
MySQLdb
.connections.Connection
对象
获得用户名。在对源代码和一些测试进行了一些研究之后,我
没有
找到任何获得用户名的方法。import
MySQLdb
host=host, passwd=passwd
浏览 5
提问于2019-11-28
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券