Python自动生成sql语句
#!usr/bin/env python# coding=utf-8# Author: zhezhiyong@163.com# Created: 2016-02-29 29:11:19def auto_insert_sql(objs, table=None, charset='UTF-8'): """ 自动生成insert SQL语句,如果obj为对象列表,则根据第一个对象生成