对于查询数据后,得到recordset后,如果直接将recordset返回的话,stmt不能关闭,否则recordset将会空。 可以将recordset封装在一个vector中,此时再将stmt关闭就没有错误了。