orgspringframeworkjdbcdatasourceinitScriptStatementFailedException Failed to execute SQL script statement #1 of class path resource datamysqldmlPermissionServiceTesttest_versionListsql INSERT INTO per
这个问题是由于SQL语句中存在语法错误导致的。具体错误是在INSERT INTO语句中,最后一个列名之后多了一个逗号。正确的语句应该是去掉最后一个逗号,如下所示:
INSERT INTO permission_version_tbl( version_id, trace_id, id, name, document, type, resolver, description, enabled, category, cmd_type, updated_at, created_at, created_by, updated_by) VALUES ( '0076fae22e1d061b5cc8106390f6ca41', '0af5e620bf484ac59ddd6b3563096cc2', 230, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'DELETE', '2021-12-14 08:26:38', '2021-12-14 08:26:38', 'deepwatch', 'deepwatch')
你可以按照上述修改后的语句重新执行,应该能解决这个问题
原文地址: http://www.cveoy.top/t/topic/hQyF 著作权归作者所有。请勿转载和采集!