用一條修改語句即可:update t_content set f_body=rawtohex(f_check) where f_type in (0,4)
此處須用rawtohex()函數(shù)將f_check轉(zhuǎn)成16進(jìn)制,不然會(huì)報(bào)ORA-01465: invalid hex number(ORA-01465:無效的十六進(jìn)制數(shù)字)的錯(cuò)誤.
備注:f_body為blob型字段,f_check為varchar2型
這時(shí)在頁面取 f_body時(shí)直接用getString("f_body")即可.
posted on 2015-07-02 14:17
Cherry-na 閱讀(238)
評(píng)論(0) 編輯 收藏