首页 > 数据库> > com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘xxx‘ in ‘field list错误‘
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘xxx‘ in ‘field list错误‘
作者:互联网
运行时出现错误
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column ‘bitch’ in ‘field list’
错误原因:
我的sql语句的列名写错误了
数据库是这样的
我写的sql是
String sql = “insert into customers(name,email,bitch)value(?,?,?)”
birth写成了bitch
改过后运行
标签:jdbc,jdbc4,错误,column,Unknown,mysql,bitch,sql 来源: https://blog.csdn.net/qq_45207162/article/details/112557582