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

Home -> Community -> Mailing Lists -> Oracle-L -> How do I parse information from a Column

How do I parse information from a Column

From: Muqthar Ahmed <Muqthar.Ahmed_at_decoratetoday.com>
Date: Thu, 30 May 2002 09:08:33 -0800
Message-ID: <F001.0046FCCD.20020530090833@fatcity.com>


Hi,

I am capturing data from v$sqlarea to a table to find out all the query activities on a database. Now I would like to parse sql_text column from a table to get only DML commands(SELECT, INSERT, UPDATE and DELETE) and also FROM clause to get table names. The example is:

SELECT cuid,usid,cufirstname,culastname,cushipfirstname,cushiplastname,cushipaddress1,cushipaddress2,cushiphomephone,cuemail,cushipcareof,cushipcity,cushipstate,cushippostalcode,cuadcode,cubilltiid,cuaddress1,cuaddress2,cucity,custate,cupostalcode FROM tblCustinfo WHERE UsID=234563245

Muqthar Ahmed
Database Administrator

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Muqthar Ahmed
  INET: Muqthar.Ahmed_at_decoratetoday.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Thu May 30 2002 - 12:08:33 CDT

Original text of this message

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