bulk insert statements with Sqlite

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
jonjames1070
Posts: 1
Joined: Sat Jul 23, 2005 11:58 pm

bulk insert statements with Sqlite

Post by jonjames1070 »

Hi,

Anybody know how I can do bulk insert statements using Sqlite? I have a few lines of text for each entry, and probably 200 entries to insert. I know I can use: .read FILENAME with the sqlite executable, but which table(s) and column(s) do I insert the values? I can't even seem to read the database file with the executable - all I can find is a file called "s9y_f88803eab73183e7fde0dfccaf531d2d.db", which it tells me is invalid. But my blog is working fine, and that file is 52k which is about right.

thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: bulk insert statements with Sqlite

Post by garvinhicking »

Maybe your SQLite executabe is different than the version that is used by PHP?

You can try to use a SQLite manager, there is one available coded in PHP. Then you could do the SQL INSERT on the serendipity_entries Table. Look at existing entries to reverse engineer the fields :)

Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply