三月 17, 2020 9:30:02 上午 org.apache.catalina.core.StandardWrapperValve invoke
嚴重: Servlet.service() for servlet [jsp] in context with path [/managerNews] threw exception [在 [30] 行處理 [/newsInsertDo.jsp] 時發生例外
27: String sql = "insert into news(id,title,author) value(null,'"+title+"','"+author+"')";
28:
29:
30: int i = stmt.executeUpdate(sql);
31:
32: stmt.close();
33: con.close();
Stacktrace:] with root cause
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'title' in 'field list'
uj5u.com熱心網友回復:
報錯提示,查看一下你表中titile這個列名稱是否一致。uj5u.com熱心網友回復:
解決思路:*一般這種就是你所寫的SQL陳述句中包含的列名在資料庫中就是不存在。*轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/117434.html
標籤:Eclipse
