乱码了,看看是不是编码问题。你单独从脚本里跳一个建表语句测试看看。这个就是从达梦官方的数据库工具里导出来的sql,没做过加工
单独执行报错
仔细看了下,确实是有问题,达梦官方的工具导出的时候有的时候会多一个null。
你把脚本里的
"IS_DELETED" INT DEFAULT 0 NULL
NULL
全局替换成
"IS_DELETED" INT DEFAULT 0 NULL
然后再执行整个脚本看看是否能成功,我这边本地可以执行,下版本针对这个优化一下
还有个问题是最后底部的insert语句少了两个字段,替换成下面的语句执行
INSERT INTO "BLADEX"."BLADE_USER_DEPT"("ID","USER_ID","DEPT_ID","STATUS","IS_DELETED") VALUES(1203503640757788674,1123598821738675201,1123598813738675201,1,0); INSERT INTO "BLADEX"."BLADE_USER_DEPT"("ID","USER_ID","DEPT_ID","STATUS","IS_DELETED") VALUES(1203503653323923458,1123598821738675202,1123598813738675202,1,0); INSERT INTO "BLADEX"."BLADE_USER_DEPT"("ID","USER_ID","DEPT_ID","STATUS","IS_DELETED") VALUES(1203503663402835969,1123598821738675203,1123598813738675202,1,0); INSERT INTO "BLADEX"."BLADE_USER_DEPT"("ID","USER_ID","DEPT_ID","STATUS","IS_DELETED") VALUES(1203503672911323137,1123598821738675204,1123598813738675202,1,0);
这是完整脚本执行完的截图
扫一扫访问 Blade技术社区 移动端