经过仔细检查,最终发现原来的连接执行了一个查询,rs = conn.exeute(sq) ,然后再conn.execute("insert ........") ,运行后报错,是因为rs没有关闭,需要 rs=nothing后就可以了