首页 > 解决方案 > java.sql.SQLException:不正确的整数值:第 1 行的列“IdentCat”的“Guitare”

问题描述

这是我输入请求插入时的错误消息。我的数据库 IdentApp(主键)中有 4 列 | IdentCat、IdentM、IdentLocax

java.sql.SQLException:不正确的整数值:第 1 行的列 'IdentCat' 的'Guitare'Requete:插入 collabo(IdentCat、IdentEtat、IdentLoc)值('Guitare'、'Mercier'、'AAAAA1')

public boolean insertAppareil(Appareil app)
{

  boolean ok = ConnexionMySQL.getInstance().actionQuery("Insert into collabo (IdentCat, IdentEtat, IdentLoc) values ('" + app.getCatApp().getNomI() + "','" + app.getEtatApp().getNomM() + "','" + app.getLocApp() +  
         "'" + ")");

  return ok;
}

标签: javasql

解决方案


推荐阅读