这个报错是因为使用了不支持的SQL语法,具体是在SQL语句中使用了 "output inserted.id" 这个语法。这个语法是SQL Server中的特有语法,在MySQL中是不支持的。

解决方式是将SQL语句中的 "output inserted.id" 这个语法删除即可。如果需要获取插入数据的主键ID,可以在插入数据之后使用SELECT LAST_INSERT_ID()来获取。

Caused by combaomidoumybatispluscoreexceptionsMybatisPlusException Failed to process Error SQL insert into APS_IRON_PRO_ASSEMBLY_CONFIG assemblyTypeprocessAssemblyJsonironTypeyokeSideStructurewiotCode

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

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