我已经在SQLite Studio中尝试了以下查询,并且可以运行,但是在应用程序中,它始终显示错误:
org.sqlite.SQLiteException:[SQLITE_ERROR] SQL错误或缺少数据库(9列的8个值)
代码:
public void saveClient(Cliente client){
String CI=stx.parseSQL(client.getCI());
double cuello=client.getCuello();
double cintura=client.getCintura();
double cadera=client.getCadera();
double peso=client.getPeso();
double talla=client.getTalla();
int frecCard=client.getFrecCard();
int frecResp=client.getFrecResp();
String meta=stx.parseSQL(client.getMeta());
String go=", ";
try {
stm.executeQuery("insert into ClientesInfotecnica values("+CI+go+cuello+go+cintura+go+
cadera+go+peso+go+talla+frecCard+go+frecResp+go+meta+")");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
talla+frecCard