Java - Spring JDBC - oracle
我的表看起来像
id, RAW(16)
name, varchar(50)
@Autowired
private JdbcTemplate jdbcTemplate;
String queryStr = "insert into myt (id, name) values(:id, :name)";
MapSqlParameterSource param = new MapSqlParameterSource();
param.addValue("id", UUID.randomUUID(), Types.Binary);
param.addValue("name", "my name", Types.VARCHAR);
jdbcTemplate.update(queryStr, param);
我收到错误java.sql.SQLException Invalid column Type