hibernate下:
使用query.setParameter([int]position, param);
参数字段params出现空值时出现该异常:
java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
解决办法:
对param进行判空操作
可以设置成setParameter([int]position,"");
hibernate下:
使用query.setParameter([int]position, param);
参数字段params出现空值时出现该异常:
java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
解决办法:
对param进行判空操作
可以设置成setParameter([int]position,"");