def sql_insert_template(savFilename):
    """Generate SQL 'INSERT INTO' template, suitable for sql quote escaping"""
    varNames, varTypes, formats = get_metadata(savFilename)
    tbl = get_table_name(savFilename)
    varNames_ = ", ".join(varNames)
    insert = "INSERT INTO %(tbl)s (%(varNames_)s) VALUES " % locals()
    template = ", ".join(["?"] * len(varNames))
    return insert + "(" + template + ");\n"
Generate SQL 'INSERT INTO' template, suitable for sql quote escaping
recipes/Python/578826_sav2mdb/recipe-578826.py