On 12/22/2012 09:45 AM, Rich Shepard wrote:
On Fri, 21 Dec 2012, Rich Shepard wrote:
I've been going around in circles on this issue for most of today
without
finding the solution. The context:
The reason for the problem, and its solution, finally penetrated my
consciousness so I resolved the issue.
Usually, the data I get in spreadsheet format has a value in each
cell so
I can write the SQL INSERT INTO statement without specifying column
names for
each value; each row is complete. With these data, however, there are
missing values which are different in each row. Therefore, I need to
either
specify the attributes with values for each row in the INSERT INTO
statement
or indicate blanks with NULLs.
Because each spreadsheet can have 19-100 columns and up to 105,000
rows,
hand-crafting an INSERT INTO statement for each file would require a huge
amount of time. Ergo, I'm filling in blank cells with NA which is easily
converted to NULL once the table exists in postgres.
Thanks for all the suggestions, and the best of the holiday season to
everyone.
Rich
Happy holidays also.
The table schema require each line to have 100 distinct, if empty,
columns and the data fills a variable number of columns. Did not think
of that as the problem but it would be for any relational database.
--
Jay Lozier
[email protected]
--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted