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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: need to compare long data against varchar2

Re: need to compare long data against varchar2

From: Jared Still <jkstill_at_cybcon.com>
Date: Fri, 21 Feb 2003 09:04:53 -0800
Message-ID: <F001.00554AA8.20030221090453@fatcity.com>

It wouldn't be too difficult to craft a solution using the to_lob function, global temporary tables and the owa_pattern package.

Read the docs on to_lob, and you'll see that it's functionality is limited to use with inserts, hence the use of the global temporary table, though not strictly necessary. A regular table would work as well.

Jared

On Friday 21 February 2003 07:19, Markham, Richard wrote:
> I need to devise a method of comparing the TEXT column of dba_views against
> varchar2.
> End result I want to find the views that reference a particular table
> within its text.
>
> example (which ~obviously~ will not work):
> select view_name
> from dba_views
> where text like '%<table_name>%
>
> I understand that a query or PL/SQL procedure of this sort would be long
> running, but
> getting the concept to work would be a start.
>
> TIA


Content-Type: text/html; name="Attachment: 1"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  INET: jkstill_at_cybcon.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Feb 21 2003 - 11:04:53 CST

Original text of this message

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