【點(diǎn)擊:】
阿木伯 著
|
|
如何對(duì)CLOB字段進(jìn)行全文檢索? |
|
- 系統(tǒng)環(huán)境:
1、數(shù)據(jù)庫(kù): Oracle 8i R3 (8.1.7) for NT 企業(yè)版
- 說(shuō)明:
CLOB字段可以select,但select時(shí)不可以使用where
SQL> create table a(a clob);
SQL> insert into a values('1234');
SQL> insert into a values('5648');
SQL> select *from a;
1234
5648
SQL> select * from a where a like '%12%';
select * from a where a like '%12%'
*
ERROR 位于第 1 行:
ORA-00932: 數(shù)據(jù)類型不一致
SQL> SELECT * FROM A WHERE dbms_lob.instr(a.a,'12',1,1)>0;
1234
SQL> SELECT * FROM A WHERE dbms_lob.instr(a.a,'5',1,1)>0;
5648
|
【最后更新:】 |
|