奇怪,我的测试结果
SQL> select userid,contains(userid,'first') from a;USERID CONTAINS(USERID,'FIRST')
-------------------------------------------------- ------------------------
the first 8
userid 0
userid1 0
first天安门 0
first 天安门 0
the first 天安门 0
userid2 0
userid 0已选择8行。SQL>
SQL> select userid,contains(userid,'first') from a;USERID CONTAINS(USERID,'FIRST')
-------------------------------------------------- ------------------------
the first 8
userid 0
userid1 0
first天安门 0
first 天安门 0
the first 天安门 0
userid2 0
userid 0已选择8行。SQL>
-------------------------------------------------- ------------------------
the first one 0
the first 8
userid 0
userid1 0
first天安门 0
first 天安门 0
the first 天安门 0
userid2 0
userid 0已选择9行。SQL> select userid,contains(userid,'天安门') from a;USERID CONTAINS(USERID,'天安门')
-------------------------------------------------- -------------------------
the first one 0
the first 0
userid 0
userid1 0
first天安门 0
first 天安门 0
the first 天安门 0
userid2 0
userid 0已选择9行。SQL> select userid,contains(userid,'one') from a;USERID CONTAINS(USERID,'ONE')
-------------------------------------------------- ----------------------
the first one 0
the first 0
userid 0
userid1 0
first天安门 0
first 天安门 0
the first 天安门 0
userid2 0
userid 0已选择9行。SQL>
关注!!!
select contains(c,'0') from aab
*
ERROR 位于第 1 行:
ORA-20000: Oracle Text error:
DRG-10599: 列没有编制索引
已用时间: 00: 00: 06.02
Ora92@test>
select contains(c,'0') from aab
*
ERROR 位于第 1 行:
ORA-20000: Oracle Text error:
DRG-10599: 列没有编制索引
已用时间: 00: 00: 06.02
Ora92@test>create index in_text on aab(c) indextype is ctxsys.context;索引已创建。已用时间: 00: 00: 07.07
Ora92@test>select contains(c,'0') from aab;CONTAINS(C,'0')
---------------
0
0
0已用时间: 00: 00: 00.04
Ora92@test>
SQL> select userid,contains(userid,'first') from a;USERID CONTAINS(USERID,'FIRST')
-------------------- ------------------------
the first one 5
the first 5
userid 0
userid1 0
a 0
a 0
first天安门 0
first 天安门 5
the first 天安门 5
a 0
userid12 0USERID CONTAINS(USERID,'FIRST')
-------------------- ------------------------
userid2 0
userid2 0
userid 0已选择14行。SQL>