Oracl使用通配符搜索报DRG-10599: 列没有编制索引

使用通配符对某表进行查询时报如下错误

java.sql.SQLException: ORA-20000: Oracle Text error:
DRG-10599: 列没有编制索引


如: select * from WFPROCESS where contains(description ,'baocuoma')>0

会报出以上错误  出现该错误后需要给该字段添加全文索引

create   index in_WFPROCESS on WFPROCESS(description) indextype is ctxsys.context


索引创建好后在查询就没错了


其中CTXSYS.contex为全文索引

猜你喜欢

转载自awen7916.iteye.com/blog/2170922