OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Inserting data from a csv file in an existing table

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
Bloodofme
Newbie
Newbie


Joined: 19 Jan 2008
Posts: 1

PostPosted: Sat Jan 19, 2008 3:11 am    Post subject: Inserting data from a csv file in an existing table Reply with quote

Hi,

first of all... sorry for my bad english. Smile

i have several csv files which i want to migrate in one db. The problem is that the source data has no unique fields. So by creating the db table from the first cvs file i have create a new column "id" as the primary key. No problems until that.

Now when i try to insert data from the other csv files into the table i got a warning like "Attempt to insert null into a non-nullable column..:" Ok, thats why there is no value in the new data for the primary key, right?

Is it possible to insert the data and automaticaly let incremental the values for "id"?
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Sat Jan 19, 2008 4:29 am    Post subject: Reply with quote

Make "id" auto-value. Call "Edit..." from the table's context menu.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group