JdbcTemplate - Insert or update Oracle BLOB using SQL MERGE
问题 Using JdbcTemplate I would like to call MERGE SQL statement which will insert a new record to the table or update if row with specific key already exists. The key part is that one of the column is of the Oracle BLOB type. Here is what I tried till now: Try 1. Sql statement: String sql = "" + "MERGE INTO file_thumbnails " + " USING (SELECT ? as file_c_id, ? as thumbnail_type, ? as thumbnail_image FROM DUAL) tmp " + " ON (file_thumbnails.file_c_id = tmp.file_c_id AND " + " file_thumbnails