计数不正确时检查参数名字/数量是否正确,或者表名是否正确
最好使用prepare-bindValue-exec步骤:
query.prepare("INSERT INTO sms(address,date,type,body) VALUES(:address,:date,:type,:body)");
query.bindValue(":address", smsInfo[i].address);
query.bindValue(":date", "");
query.bindValue(":type", smsInfo[i].type);
query.bindValue(":body", smsInfo[i].body);
query.exec();