1. 程式人生 > >實體類資料型別 String類資料 插入或查詢oracle 資料庫中欄位型別為CLOB的欄位

實體類資料型別 String類資料 插入或查詢oracle 資料庫中欄位型別為CLOB的欄位

利用to_char()函式,如

SELECT trans_basecode

FROM xjl_xzsp_trans
WHERE
to_char(trans_basecode) = #{transBaseCode}

AND del_flag='0'

其中#{transBaseCode}引數對應的型別為String,實現CLOB型別與String型別的比對,成功比對出結果;