我无法再连接到SQL Server。这是代码:
import pymssql as ms
connection = ms.connect(host='197.0.0.1',database='FriendList',user='test',password='test')
cursor = connection.cursor()
sql= 'select * from Personal_info'
cursor.execute()
result = cursor.fetchall(sql)
print(result)
这是错误:
D:/Users/Anto/PycharmProjects/test/test.py:1:弃用警告: 从“集合”而不是从“集合”使用或导入ABC 已弃用'collections.abc',在3.8版中它将停止工作
将pymssql导入为ms