今天碰到的问题:
nested exception is java.sql.SQLException: ORA-00918: column ambiguously defined
查到如下资料:
出错原因:
SELECT 1 AS cc ,2 AS cc FROM dual;这个语句是没错的。
而下面这个就有问题了:
SELECT * FROM ( SELECT 1 AS cc ,2 AS cc FROM dual );
所以出现这种错误,就找找是不是有字段的别名定义重复了。
问题解决 !