Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> How do you search through multiple tables?
Afternoon,
the following (tested) procedure works for me. If you have any LONG, RAW, LONG RAW, CLOBs or BLOBs then they are not going to be searched - and probably can't anyway (without DBMS_LOB at least).
Have fun.
Regards,
Norman.
PS. You could replace DBMS_OUTPUT with UTL_FILE if you have a likelyhood of getting more than 1,000,000 characters out from the search, but this works for me.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com -------------------------------------
CREATE OR REPLACE PROCEDURE FindText(TextToFind IN VARCHAR2) AS
MyResult NUMBER := 0;
BEGIN
-----Original Message-----
From: navaed7024_at_hotmail.com (E. Navarro)
[mailto:navaed7024_at_hotmail.com]
Posted At: Tuesday, February 18, 2003 10:35 PM
Posted To: server
Conversation: How do you search through multiple tables?
Subject: How do you search through multiple tables?
Oracle 8.1.7.4 EE
Solaris 7
All,
I am trying to figure out a way to search through multiple tables (over
50)for
a particular piece of data. I had a user enter some data into a table a
while
back, and can't figure out which table he entered the data. Does anyone
have a script that can traverse through table columns and locate data
(in my
case it was a string)?
Received on Wed Feb 19 2003 - 06:40:20 CST