java执行sql列名无效_java.sql.SQLException:列名无效

我无法弄清楚为什么我在这里得到“无效的列名”.

我们已经在Oracle中直接尝试了sql的一个变体,并且它工作正常,但是当我使用jdbcTemplate尝试它时,出了点问题.

List alleXmler = jdbcTemplate.query("select p.applicationid, x.datadocumentid, x.datadocumentxml " +

"from CFUSERENGINE51.PROCESSENGINE p " +

"left join CFUSERENGINE51.DATADOCUMENTXML x " +

"on p.processengineguid = x.processengineguid " +

"where x.datadocumentid = 'Disbursment' " +

"and p.phasecacheid = 'Disbursed' ",

(rs, rowNum) -> {

return Dataholder.builder()

.applicationid(rs.getInt("p.applicationid"))

.datadocumentId(rs.getInt("x.datadocumentid"))

.xml(lobHandler.getClobAsString(rs, "x.datadocumentxml"))

.build();

});

适用于Oracle的整个sql是这样的:

select

process.applicationid,<

你可能感兴趣的:(java执行sql列名无效)