Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 12th, 2003, 11:13 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parsing values out of a field

Hello -

I am trying to create some reports from an Oracle Database. Unfortunately the database is not normalized (not even 1st normal form) which makes what I am trying to do very difficult.

One of the fields in this database is actually its own fixed length record that holds approx. 30 additional elements for that record. I need to include a few of these elements in my report but I can't figure out a way to retrieve them easily.

I am used to working with SQL Server which has string functions that allow you to only pull back a specific range of characters out of a field, but I can't find any of those types of functions in Oracle.

Basically I need a way to select field 1, field 2, and characters 30-42 of field 3 out of this table. Eventually I might want to do something like select field 1 and 2 where the 30th-42nd character of field 3 = xxxxxxx. Any help would be greatly appreciated.

Thanks,
Mike
  #2 (permalink)  
Old March 3rd, 2005, 10:51 AM
Registered User
 
Join Date: Feb 2005
Location: Hyderabad, Andhra Pradesh, India.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to SureshHyd
Default

We have rich set of string library functions in oracle too. Check oracle documentation for this. Use substr,instr etc.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to concatenate two values into one field haixia XSLT 3 November 7th, 2016 02:33 PM
Default Field Values tachtenberg Reporting Services 1 February 19th, 2008 05:52 PM
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
Selecting on different values of the same field alphahamster SQL Language 4 May 30th, 2006 11:08 AM
Parsing and Removing CSV values in row cell. peryan77 SQL Server 2000 5 February 2nd, 2006 03:48 PM



All times are GMT -4. The time now is 03:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.