Merging .db files

A forum for general discussion of the Python programming language.

Merging .db files

Postby Priya77492 » Sun Aug 18, 2013 3:17 pm

Hello everyone,

I am working on a project & i am wondering if there is a way to combine 8 .db files into 1. I'm new to python & i really hope someone can help me. Thank you.

Regards,
Priya (:
Priya77492
 
Posts: 3
Joined: Sun Aug 18, 2013 3:14 pm

Re: Merging .db files

Postby Yoriz » Sun Aug 18, 2013 3:42 pm

I dont see why not.
What is the .db file, a sqlite3 file?
Read the rows form each file and insert them all into a new file.
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Spam topic disapproval technician
Windows7, Python 2.7.4., WxPython 2.9.5.0., some Python 3.3
User avatar
Yoriz
 
Posts: 833
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: Merging .db files

Postby Priya77492 » Sun Aug 18, 2013 3:52 pm

Hi Yoriz,


SQLite. my .db files are actually my whatsapp conversations. Reading in 1 by 1 will be quite hard, dont you think so ?

Regards,
Priya
Priya77492
 
Posts: 3
Joined: Sun Aug 18, 2013 3:14 pm

Re: Merging .db files

Postby Yoriz » Sun Aug 18, 2013 3:58 pm

No computers are good at doing repetitions.
python has a built in library for sqlite3
http://docs.python.org/2/library/sqlite3.html
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Spam topic disapproval technician
Windows7, Python 2.7.4., WxPython 2.9.5.0., some Python 3.3
User avatar
Yoriz
 
Posts: 833
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: Merging .db files

Postby Priya77492 » Sun Aug 18, 2013 4:06 pm

Hi Yoriz


Alright. Thanks. Will look into it. Thanks (:

Regards,
Priya
Priya77492
 
Posts: 3
Joined: Sun Aug 18, 2013 3:14 pm


Return to General Discussions

Who is online

Users browsing this forum: Bing [Bot] and 4 guests