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

Home -> Community -> Mailing Lists -> Oracle-L -> Instr function ?

Instr function ?

From: steven wndy <wndyu_at_yahoo.com>
Date: Tue, 11 Dec 2001 16:57:26 -0800
Message-ID: <F001.003DA60B.20011211155024@fatcity.com>

Hello:

My table has a column (EVFIELDS) contain the concatenated information pass in (up to 20 fileds from other tables which will be used to update into our database), each piece of information will be separated by “^” in this column and some info are nullable, then the data for this column would be like:

1/ 
CIRCUITS00001^^12/31/01^^^^^^CIRCUITS^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2/
DESKTOP-000001^333^^^^^^^DESKTOP
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The first example above I have data in pos1, pos3, pos9, and others are NULL;
The second example there are data in pos1, pos2,pos9, and others are NULL;

I tried INSTR. But how do I find the start and end points for the postion like pos3 or pos11? In another word, how can I filter/select those data out of these “^”? Should I loop for the postion 1 to 2000? Any idea?

Desc c_eventout:

EVTYPE                     VARCHAR2(64)
EVTIME                     DATE
EVUSER                     VARCHAR2(64)
EVFIELDS                   VARCHAR2(2000)
EVSEPCHAR                  VARCHAR2(1)

Thanks for your reply

Steven



Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com
--

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

Author: steven wndy
  INET: wndyu_at_yahoo.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 Tue Dec 11 2001 - 18:57:26 CST

Original text of this message

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