文章詳情頁
windows - python pymysql 返回值是int類型
瀏覽:123日期:2022-09-09 11:32:50
問題描述
mysql 版本是5.5有多條符合條件的mysql數(shù)據(jù)但是print后返回的只是一個總數(shù)計數(shù)而已,varchar內(nèi)容不知道怎么調(diào)用。數(shù)據(jù)庫里的內(nèi)容就不上圖了,大概是這樣{1,tom.2.frank.1,dave}沒規(guī)定auto-incrementpython pymysql 返回值是int類型
問題解答
回答1:cursor.fetchall解決問題了
相關(guān)文章:
1. python - 有什么好的可以收集貨幣基金的資源?2. docker容器呢SSH為什么連不通呢?3. docker鏡像push報錯4. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.5. docker start -a dockername 老是卡住,什么情況?6. docker網(wǎng)絡(luò)端口映射,沒有方便點的操作方法么?7. node.js - nodejs debug問題8. MySQL數(shù)據(jù)庫中文亂碼的原因9. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問題10. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””
排行榜

熱門標(biāo)簽