RE: [sqlite] Re: Insert chinese characters in SQLite database

2007-12-13 Thread Kalyani Phadke
Yes , It worked. Could you pls tell me whats the difference between adLongVarWChar and adLongVarChar? Does SQLite support Unicode encoding(UTF-8)? -Original Message- From: Igor Tandetnik [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 4:13 PM To: SQLite Subject: [sqlite] Re

Re: [sqlite] Re: INSERT: how to include CR & LF symbols in a string constant?

2007-11-14 Thread Jevgenijs Rogovs
It runs fine as long as it is small... If the text in the field is longer, it seems to crash. Any idea how to drop that stupid depth limit? Where do I specify that option? The official site (http://www.sqlite.org/limits.html) does not explain this... On Nov 14, 2007 3:53 PM, Dan Kennedy <[EMAIL PR

Re: [sqlite] Re: INSERT: how to include CR & LF symbols in a string constant?

2007-11-14 Thread Dan Kennedy
On Wed, 2007-11-14 at 15:38 +0200, Jevgenijs Rogovs wrote: > Thanks, but how do I use those? > See, I have a huge file of INSERT statements, which look like this: > > INSERT INTO sometable VALUES ('blablabla\r\nyadayadayada'); > > What I need is to import this data into SQLite database. If I chan

Re: [sqlite] Re: INSERT: how to include CR & LF symbols in a string constant?

2007-11-14 Thread Jevgenijs Rogovs
I suppose I could try raising the limit of tree depth, or removing it whatsoever, but how do I do that, provided that I'm doing my import like this: sqlite3 mydatabase.db < myhugescript.sql Tried the -DSQLITE_MAX_EXPR_DEPTH=0 option on sqlite3 command line, but it doesn't recognize it! What am I

Re: [sqlite] Re: INSERT: how to include CR & LF symbols in a string constant?

2007-11-14 Thread Jevgenijs Rogovs
Thanks, but how do I use those? See, I have a huge file of INSERT statements, which look like this: INSERT INTO sometable VALUES ('blablabla\r\nyadayadayada'); What I need is to import this data into SQLite database. If I change all \r\n occurances into the following: INSERT INTO sometable VALUE

RE: [sqlite] Re: INSERT OR IGNORE and sqlite3_last_insert_rowid()

2007-10-29 Thread Michael Ruck
Ok, thanks I haven't seen this function. I'll try it. Mike -Ursprüngliche Nachricht- Von: Igor Tandetnik [mailto:[EMAIL PROTECTED] Gesendet: Montag, 29. Oktober 2007 17:01 An: SQLite Betreff: [sqlite] Re: INSERT OR IGNORE and sqlite3_last_insert_rowid() Michael Ruck wrote: > I don't

Re: [sqlite] Re: INSERT after creating an INDEX

2007-09-13 Thread Frank Fiedler
Hi Igor, All prepared statements become invalid when the database schema changes. You need to finalize your statement and prepare it again. Alternatively, if you are using new enough version of SQLite, use sqlite3_prepare_v2 to prepare your statements: it stores the original query string and

Re: [sqlite] Re: INSERT OR REPLACE without new rowid

2007-05-08 Thread Cesar Rodas
On 24/04/07, Igor Tandetnik <[EMAIL PROTECTED]> wrote: Trey Mack <[EMAIL PROTECTED]> wrote: > I'd like to perform an update to a row if it exists (uniquely > identified by 3 text columns), otherwise insert a new row with the > right data. INSERT OR REPLACE looks good, but it generates a new > pr

RE: [sqlite] Re: Insert

2007-02-28 Thread Christian POMPIER
But what is the good syntax ? -Message d'origine- De : Igor Tandetnik [mailto:[EMAIL PROTECTED] Envoyé : mercredi 28 février 2007 13:37 À : SQLite Objet : [sqlite] Re: Insert Christian POMPIER <[EMAIL PROTECTED]> wrote: > Could i make to insert 10 000 row in my table with a loop ? Yes.

Re: [sqlite] Re: insert default values - supporting it?

2006-08-01 Thread Mario Frasca
just to show that it does not crash: sqlite> create table test2 (k integer primary key autoincrement); sqlite> insert into test2 default values; sqlite> insert into test2 () values (); sqlite> select * from test2; 1 2 sqlite>

Re: [sqlite] Re: insert default values - supporting it?

2006-08-01 Thread Mario Frasca
I refined the patch. it constructs a list of values with one NULL, but I don't see how to construct an idList with just the primary key. also added the grammar rule to recognize both: insert into default values; insert into () values (); anybody completing/correcting the work? sqlite> ins

Re: [sqlite] Re: Insert triggers

2006-01-24 Thread Dennis Cote
Igor Tandetnik wrote: nbiggs wrote: Can an insert trigger cause an update trigger to be fired also? My triggers are listed below. I want tgr_on_insert to fire tgr_on_update. SQLite does not support cascading triggers. Operations performed by a trigger never cause other triggers to run.