Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: context contains in procedure

Re: context contains in procedure

From: Garrett Kaminaga <gkaminag__at__us.oracle.com>
Date: Wed, 11 Nov 1998 12:45:56 -0800
Message-ID: <3649F784.2F70563C@_us.oracle.com>


Steve Donovan wrote:
>
> I have a context server and text search application
> but now I want to create some procedures to text search.
>
> For a simple example, if I were to use a query such as:
>
> select * from mytable
> where contains(text_col, 'me') > 0;
>
> everything works fine. However, stick that same query inside a procedure
> and it results in error:

Transparent query is not integrated with PL/SQL until version 8.1 For PL/SQL procedures, you should use two-step (ctx_query.contains) or IMQ (ctx_query.open_con), depending on your requirements. two-step generally has better throughput, IMQ better response.

Also, depending on your version, you might be able to use dbms_sql to do a contains query.

--


Garrett Kaminaga                          Oracle ConText Server Group
---------------------------------------------------------------------
Note: remove underscores to get real email address Standard disclaimers apply -- all posts are personal opinion Received on Wed Nov 11 1998 - 14:45:56 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US