pip install pymssql python import pymssql python python cursor = conn.cursor() python cursor.execute(sql_query) python row = cursor.fetchone() while row: row = cursor.fetchone() python rows = cursor.fetchall() for row in rows: python cursor.close() conn.close() python import pymssql cursor = conn.cursor() cursor.execute(sql_query) rows = cursor.fetchall() for row in rows: pass cursor.close() conn.close()


上一篇:
下一篇:
切换中文