导入数据出错:SQL语法错误 - 解决方法
{"title":"导入数据一共【10】行","description":"导入10行数据到数据库时,遇到了SQL语法错误,错误信息显示在VALUES子句中存在语法错误。","keywords":"SQL语法错误, 导入数据, VALUES子句, MySQL, 数据库","content":"Creating a new SqlSession\nSqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1f11ecf5] was not registered for synchronization because synchronization is not active\n19-Jul-2023 10:24:19.738 淇℃伅 [http-nio-8080-exec-6] com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} inited\nJDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@17926a61] will not be managed by Spring\n==> Preparing: insert into spareplan( dec_as_num, item_num, item_name, item_detail, model, capacity, storage_status, storage_num, outbound_status, outbound_num, dispatch_status, plan_status item ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ? ) \n==> Parameters: null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null\nClosing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1f11ecf5]\n19-Jul-2023 10:24:20.427 淇℃伅 [http-nio-8080-exec-6] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]\norg.springframework.jdbc.BadSqlGrammarException: \n19-Jul-2023 10:24:20.457 淇℃伅 [http-nio-8080-exec-6] org.springframework.jdbc.support.SQLErrorCodesFactory.
原文地址: https://www.cveoy.top/t/topic/pTSD 著作权归作者所有。请勿转载和采集!