Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Parsing a string from a column and populating other columns.....

1022370Jul 3 2013 — edited Jul 4 2013

Hi, i have a table that has one column (FILE_PATH) which has a gigantic long string in it:

x:\PCD\North\Projects\SDP\New
  SDP 81103\81000\Working\DE\DRG\Common\2745649p5.dwg

for example.

Now what I need to be able to do, is somehow read all records from the FILE_PATH) column, parse it (probably using the '\' and '.' as a delimiter as i also want a FILE_EXTENSION column) and then populate other columns according to different conditions, as its extremely messy and untidy database ive inherited :-(     so x:\PCD\North\Projects\SDP, would go into FILE_PATH, dwg would go into FILE_EXTENSION etc etc etc.

Any help or pointers would be greatly appreciated.....

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2013
Added on Jul 3 2013
7 comments
674 views