
2015年7月2日
用一條修改語句即可:update t_content set f_body=rawtohex(f_check) where f_type in (0,4)
此處須用rawtohex()函數將f_check轉成16進制,不然會報ORA-01465: invalid hex number(ORA-01465:無效的十六進制數字)的錯誤.
備注:f_body為blob型字段,f_check為varchar2型
這時在頁面取 f_body時直接用getString("f_body")即可.
posted @
2015-07-02 14:17 Cherry-na 閱讀(238) |
評論 (0) |
編輯 收藏