网站首页
编程语言
数据库
系统相关
其他分享
编程问答
insertSql
2024-10-09
Python操作SQLServer数据库增删改查
#coding:utf-8importpymssqldeffn_query(cursor):#查询sql='SELECT*fromTest'cursor.execute(sql)row=cursor.fetchone()whilerow:print(row)row=cursor.fetchone()deffn_insert(cursor):#