The error message suggests that there is an issue with updating the database due to a SQL syntax error. The specific error is "Unknown column 'line_name' in 'field list\".\n\nThe error is most likely in the LineDao.java file, specifically in the add method. It seems that the SQL statement used for inserting data into the 'attraction' table is incorrect. The 'line_name' column is not recognized, which is causing the error.\n\nTo fix this issue, you need to make sure that the 'line_name' column exists in the 'attraction' table. You can check the database schema and verify if the column is missing or has a different name. If it is missing, you can add the column to the table. If it has a different name, you need to update the SQL statement in the LineDao.java file to match the correct column name.


原文地址: http://www.cveoy.top/t/topic/pFtf 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录