Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 2nd, 2008, 12:56 AM
Registered User
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load VARIABLE Number of columns

Hi,

I'm dealing with web-logs with variable number of fields

Assuming my input file has 100 records, some of those would have 10 fields in a row, some 50 - all delimited by ','.

How do I load such data ? Any pointers please.

Thanks.
 
Old November 2nd, 2008, 05:51 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Depends entirely upon what all those delimited columns are for.

For example, if the first 5 columns specify the info that identifies the source of the record and all the other columns are groups of 5 each with further info, then you'd presumably have two tables in the DB, each with 6 columns. The first table--the one with the identifying info--would have an added primary key column (probably autoincrement) and then you'd have as many records as needed in the second table, each with a foreign key back to the first table.

But my advice there is just as vague as your question. I don't see how anybody could give a very meaningful answer until you gave some more meaningful data.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Test if variable is even or odd number Mikect Beginning VB 6 2 June 13th, 2016 08:17 AM
SELECT VARIABLE Number of columns drani Oracle 4 September 21st, 2008 01:12 AM
Dynamic number of columns returned from sp dreadjr BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 July 5th, 2006 03:42 PM
Load Report Failed - Invalid Table Number rstaubitz Crystal Reports 0 December 28th, 2005 10:07 AM
variable number of fields in record manisha.anand Oracle 0 July 1st, 2004 05:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.