RE: [sqlite] Failing Transaction Help.

2006-03-01 Thread nbiggs
- Original Message - From: "nbiggs" <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Wednesday, March 01, 2006 10:24 PM Subject: [sqlite] Failing Transaction Help. > In my application, I am using a transaction to insert about 10 records > at a time. The pr

[sqlite] Failing Transaction Help.

2006-03-01 Thread nbiggs
In my application, I am using a transaction to insert about 10 records at a time. The problem is that if one of the statements in the transaction fail, commit is not being executed. When I try creating another transaction, I get a constant error message "can not create a transaction within a

RE: [sqlite] How to read column names

2006-02-09 Thread nbiggs
select name from sqlite_master where type='table' That will get you the names of tables in the database. -Original Message- From: Eugen Stoianovici [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 3:57 PM To: sqlite-users@sqlite.org Subject: [sqlite] How to read column names

RE: [sqlite] SQLite to MySQL

2006-02-06 Thread nbiggs
Are you using SQLite that is built into PHP5? That SQLite version is 2.8.17, or at least it is on my pc. Anyway, you might want to consider switching to a newer version of SQLite and using PHP's PDO functions which will allow you to connect to a SQLite3 database. In my application, I

[sqlite] Help with IF NOT EXiSTS

2006-01-30 Thread nbiggs
I get the following error if I try to use the IF NOT EXISTS function. If I take out the "IF NOT EXISTS", the statement creates the index. The same happens when I try using IF NOT EXISTS in a CREATE table statement. CREATE UNIQUE INDEX IF NOT EXISTS idx_table ON table (field1, field2); SQL error:

RE: Re[2]: [sqlite] Save my harddrive!

2006-01-27 Thread nbiggs
Thanks for everyone's input, that's what I wanted to hear. -Original Message- From: Teg [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 2:06 PM To: nbiggs Subject: Re[2]: [sqlite] Save my harddrive! Hello nbiggs, My users typically download between 3 to 40 gigs of data a day

RE: [sqlite] Save my harddrive!

2006-01-27 Thread nbiggs
PROTECTED] Sent: Friday, January 27, 2006 12:06 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Save my harddrive! - Original Message - From: "nbiggs" <[EMAIL PROTECTED]> > > My application generates about 12 records a second. I have no problems > storing the

[sqlite] Save my harddrive!

2006-01-27 Thread nbiggs
My application generates about 12 records a second. I have no problems storing the records into the database, but started thinking that if I commit every 12 records, will my hard drive eventually die to extreme usage? During a 24 hour period up to 1 million records will be generated and

RE: [sqlite] Re: Difference between finalize and reset.

2006-01-26 Thread nbiggs
What would be a good example of reusing the statement? Why not just execute the SQL again? -Original Message- From: Igor Tandetnik [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 12:21 PM To: SQLite Subject: [sqlite] Re: Difference between finalize and reset. nbiggs <[EM

RE: [sqlite] Re: Difference between finalize and reset.

2006-01-26 Thread nbiggs
Thanks -Original Message- From: Igor Tandetnik [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 12:21 PM To: SQLite Subject: [sqlite] Re: Difference between finalize and reset. nbiggs <[EMAIL PROTECTED]> wrote: > Can somebody please explain the differenc

[sqlite] Difference between finalize and reset.

2006-01-26 Thread nbiggs
Can somebody please explain the difference between the sqlite3_finalize and sqlite3_reset functions. Do I just call finalize after calling prepare and step, or do I need to call reset also? Looking at the source code, it looks like the exec function just uses prepare, step and finalize.

[sqlite] Insert triggers

2006-01-24 Thread nbiggs
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. --

RE: [sqlite] Decimal conversion

2006-01-23 Thread nbiggs
Thanks Dennis, I will give that a shot. -Original Message- From: Dennis Cote [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 11:20 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Decimal conversion nbiggs wrote: >I was using version 3.2.1. I downloaded 3.3.1 and y

RE: [sqlite] Decimal conversion

2006-01-20 Thread nbiggs
and then loaded 3.3.1 from the .sql files. -Original Message- From: Dennis Cote [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 2:31 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Decimal conversion nbiggs wrote: >When I try executing the command I get 'SQL error: n

RE: [sqlite] Decimal conversion

2006-01-19 Thread nbiggs
My query is as follows: Select round(field, 1), count(*) from table group by round(field, 1); -Original Message- From: Dennis Cote [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 1:31 PM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Decimal conversion nbiggs wrote: >How

[sqlite] Decimal conversion

2006-01-19 Thread nbiggs
How do I convert the number 49.991 to just 49.9 in a select statement? Using the round(weight, 1) returns 50.0. Is there a truncate function? Nathan Biggs

[sqlite] SQLITE Wrappers

2006-01-19 Thread nbiggs
Hello, I have created some wrappers to call the sqlite3.dll. I just wanted to make sure that I have all the wrappers I need to use sqlite. It is working, I just wanted to make sure that I am making all the calls in the correct order. To Open: sqlite3_open To Execute: sqlite3_prepare