日期:2014-05-17  浏览次数:20867 次

oracle contains问题,着急,一小时结帖
select   *   from   program   P   where   contains(p.description, '%s ')> 0;
表中没有任何纪录有s,为什么返回了所有的数据呢?
另外,contains能不能支持%通配符呢?
上面的contains用法有什么问题吗?

------解决方案--------------------
支持通配符的,没有看出语法有什么问题
------解决方案--------------------
select * from program P where contains(p.description, ' "%s " ')> 0;

不知道这样可不可以,试试看~~~
------解决方案--------------------
刚试验过没有你说的情况出现。

另外oracle Text支持通配符的。请看文章:

http://www.oracle.com/technology/products/text/x/tech_overviews/imt_815.html
这里全面介绍了oracle Text,是我找了两天才找到的,关键是文章太多- -。

ps:一般人儿我不告诉他
------解决方案--------------------
没用过~~