blob意思 oracle數(shù)據(jù)庫如何查詢一張表中BLOB字段中的內容?
oracle數(shù)據(jù)庫如何查詢一張表中BLOB字段中的內容?可以通過dbms_lob來輔助查詢:--創(chuàng)建測試表create table tt1 (XXName varchar2(20),ProductID
oracle數(shù)據(jù)庫如何查詢一張表中BLOB字段中的內容?
可以通過dbms_lob來輔助查詢:--創(chuàng)建測試表create table tt1 (XXName varchar2(20),ProductIDs blob)--向測試表中插入數(shù)據(jù)insert into tt1 select "a",to_blob("a001b002") from dual--查詢blob字段中含有"a001"的記錄select XXName from tt1 where mod(dbms_lob.instr(ProductIDs,"a001"),2)=1--刪除測試表drop table tt1
oracleCLOB/BLOBtovarchar2?
to_char就好了,long型的不能to_char,需要用其他方式,但是clob直接to_char就搞定了