[sqlite] Help me in SQL

2006-07-20 Thread blins
Hi sqlite-users@sqlite.org, I use sqliteODBC 0.68 + ADO and SQLite 3.3.6. I try executing sql: select t1.field1 as field1, t2.field2 as field2 from table1 t1 left join table2 t2 on (t1.id=t2.refid) and I receive the message on a mistake "no such column: t1.field1(1)" -- Компьютеры помогают

RE: [sqlite] SQLiteSpy vs. SQLite.dll speed comparison

2006-07-20 Thread michael cuthbertson
Daniel: Thanks for the suggestion. I wasn't aware that the prepare statement gained you that much for one-table select queries. I use it for multi-100k inserts (along with trans.) and it saves quite a bit of time. This is my sql for the present problem: select * from (select f1, f2, f3, f4, f5

RE: [sqlite] SQLiteSpy vs. SQLite.dll speed comparison

2006-07-20 Thread michael cuthbertson
Brannon: Thank you for your thoughts. To be clear, the 'optimize for speed' setting in MY release is actually slower than MY debug version - I know nothing about Ralf's settings. That issue is separate from SQLiteSpy - I didn't mean to conflate them. And the issue is not which version of VS I'm

Re: [sqlite] count(*)

2006-07-20 Thread Dennis Cote
Brannon King wrote: select rowid from table limit 1 offset -1; Two ways to do this: SELECT rowid FROM table ORDER BY rowid DESC LIMIT 1; SELECT max(rowid) FROM table; Yes, but neither one of those would be as fast as this query, true? SELECT rowid FROM table LIMIT 1 I

Re: [sqlite] finding the groups which have some sort of mising transaction

2006-07-20 Thread Kees Nuyt
On Thu, 20 Jul 2006 15:44:32 +1000, you wrote: >HI, all > >The following 2 queries (have the same result) are about to find some groups >which have some sort of missing transactions. Please advise which one would >have better performance. Thank you in advance! Why not measure both cases with:

Re: [sqlite] How to calculate the sum up to a row better than O(n^2)?

2006-07-20 Thread Jay Sprenkle
On 7/20/06, Michael Sizaki <[EMAIL PROTECTED]> wrote: Hi, Suppose I have a database: CREATE TABLE data (timestamp INTEGER, amount INTEGER); INSERT INTO data VALUES(1,10); INSERT INTO data VALUES(2,20); INSERT INTO data VALUES(3,5); INSERT INTO data VALUES(4,2); ... Now I

RE: [sqlite] SQLiteSpy vs. SQLite.dll speed comparison

2006-07-20 Thread Brannon King
The VC6 compiler is from 1998. The VC 7.1 or 8.0 compilers produce better compilations. I'm certain any Borland or GNU compiler of the past 3 years would also produce better assembly than VC6. And if somebody has their hands on a PathScale or Intel compiler, please post some benchmarks! > I

[sqlite] How to calculate the sum up to a row better than O(n^2)?

2006-07-20 Thread Michael Sizaki
Hi, Suppose I have a database: CREATE TABLE data (timestamp INTEGER, amount INTEGER); INSERT INTO data VALUES(1,10); INSERT INTO data VALUES(2,20); INSERT INTO data VALUES(3,5); INSERT INTO data VALUES(4,2); ... Now I want to see the sum up to the timestamp: SELECT

RE: [sqlite] SQLiteSpy vs. SQLite.dll speed comparison

2006-07-20 Thread Shields, Daniel
> I've been using the SQLiteSpy sql browser tool from Ralf > Junker at The Delphi Inspiration to test and time sql. > Unfortunately for my assumptions, it appears that SQLiteSpy > runs queries about 2.5x faster than using the SQLite dll in my code. > Does anyone know how to speed up SQLite

Re: [sqlite] Importing Oracle 8.1.7 data into SQLite

2006-07-20 Thread Jay Sprenkle
On 7/20/06, Vinod Inamdar <[EMAIL PROTECTED]> wrote: Dear All, I am a newbie to SQlite and I require the above mentioned functionality in the subject line for a specific project. Is it possible to import Oracle 8.1.7 data into SQLite. Also is it possible to export data from SQLite to Oracle

Re: [sqlite] Order of columns within a CREATE TABLE statement

2006-07-20 Thread Christian Smith
w b uttered: Hi all, Just had a quick question with regards to the order of the columns within a create table statement I have a few tables that use the BLOB type for storing various lengths of binary data and I was wondering if its better (more efficient) to always declare columns of this

Re: [sqlite] Importing Oracle 8.1.7 data into SQLite

2006-07-20 Thread John Stanton
Write it out in SQL and read in the SQL. A bit clumsy, but simple. Vinod Inamdar wrote: Dear All, I am a newbie to SQlite and I require the above mentioned functionality in the subject line for a specific project. Is it possible to import Oracle 8.1.7 data into SQLite. Also is it possible to

Re: [sqlite] sqlite

2006-07-20 Thread John Stanton
Sqlite is driven by SQL, so you just use SQL like any other SQL database. sandhya wrote: Hi, Is there any possibility to import files from the local file system to the sqlite DB.And Is there any export option is there just to check whether the loaded file and exported file consists of same

[sqlite] import in sqlite

2006-07-20 Thread sandhya
> Hi, > > Is there any possibility to import files from the local file system to the > sqlite DB.And Is there any export option is there just to check whether the > loaded file and exported file consists of same data or not. > Is it possible in sqlite? > If possible,How it will stores files in

Re: [sqlite] Resources required and Lock & recovery mechanisms

2006-07-20 Thread Vivek R
Thank you John. Regards, Vivek R On 7/20/06, John Stanton <[EMAIL PROTECTED]> wrote: Sqlite requires few resources. Locking is achieved through regular file locks which lock the entire database since it is a file. Flow control is not applicable. You may use semaphores etc in your

[sqlite] Importing Oracle 8.1.7 data into SQLite

2006-07-20 Thread Vinod Inamdar
Dear All, I am a newbie to SQlite and I require the above mentioned functionality in the subject line for a specific project. Is it possible to import Oracle 8.1.7 data into SQLite. Also is it possible to export data from SQLite to Oracle 8.1.7 Regards, Vinod Inamdar

[sqlite] sqlite

2006-07-20 Thread sandhya
Hi, Is there any possibility to import files from the local file system to the sqlite DB.And Is there any export option is there just to check whether the loaded file and exported file consists of same data or not. Is it possible in sqlite? If possible,How it will stores files in tables?In which