Getting “Invalid column type” excecption, while using NamedParameterJDBCTemplate for insertion

后端 未结 6 1737
情深已故
情深已故 2021-01-12 17:11

I am using below code while inserting a row into database(oracle 10g xe,jar: ojdbc14.jar)

String sql = \"INSERT INTO SPONSOR_TB(ID,NAME,INDUSTRY_TYPE,IS_REPO         


        
6条回答
  •  暖寄归人
    2021-01-12 17:43

    You are getting this exception because you are using JdbcTemplate instead of NamedParameterJdbcTemplate. MapSqlParameterSource works with NamedParameterJdbcTemplate.

提交回复
热议问题