ERROR:
ORA-01756: 引号内的字符串没有正确结束
SELECT DISTINCT A.JNO FROM Rt AS A WHERE NOT EXISTS (SELECT PNO FROM St AS B WHERE NOT EXISTS (SELECT JNO,PNO FROM Rt AS C WHERE C.JNO=A.JNO AND B.PNO=C.PNO)) GROUP BY A.JNO
*
第 1 行出现错误:
ORA-00933: SQL 命令未正确结束
如果确认没有语法错误,那么就是sql文件编码的问题,由于oracle是用Java写的,所以我们在写sql脚本时应该保存为ANSI编码
(另存为,选择编码为ANSI即可)
时间: 2024-12-30 04:18:04