1. 首页
  2. 数据库
  3. 其它
  4. Python 数据库Insert语句脚本生成工具(SQL Server)

Python 数据库Insert语句脚本生成工具(SQL Server)

上传者: 2020-12-23 05:40:09上传 PDF文件 88.04KB 热度 17次
编写这个小工具,是因为平时部署项目的时候,需要导出一些公共的数据(权限、参数设置等),覆盖插入正式环境。 话不多说,直接上代码: import pyodbc import warnings import decimal import winreg import os import configparser import time import datetime warnings.filterwarnings('ignore') def link(): root_dir = os.path.split(os.path.realpath(__file__))[0]# 获取当前文件所在目录
用户评论