Re: [sqlite] Running out of disk space.

2007-02-09 Thread Dennis Cote
or when you called sqlite_reset (see the section Goofy Interface Alert). Nonetheless, you are saying you are getting an SQLITE_DONE when the disk is full. What does the version 3.3.4 sqlite shell give you when you do an explain on a commit statement? sqlite3 test.db .explain

Re: [sqlite] Running out of disk space.

2007-02-09 Thread Dennis Cote
ler that this op-code (Halt) executed correctly. This op-code is only one step in the execution of the statement. I'm not saying you haven't found a problem with respect to full disks, but this code is not the culprit. You will need to keep

Re: [sqlite] Backing up a SQlite database

2007-02-09 Thread Dennis Cote
That will acquire a write lock and unnecessarily block all other readers as well. You only need to hold a read lock to prevent any other process from acquiring a write lock. Dennis Cote - To unsubscribe, send email

Re: [sqlite] Backing up a SQlite database

2007-02-09 Thread Dennis Cote
es from doing any writes). Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] ATTACH and :memory: databases

2007-02-07 Thread Dennis Cote
ach to :memory: you get a new completely independent memory database. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] how can i speed up inserts ?

2007-02-07 Thread Dennis Cote
o get more sophisticated adding a timer that will also do a commit and begin say one second after the last log entry if you need to. You will get a speedup by nearly a factor of 100, and if you have a power failure or OS crash you will only lose the uncommitted records, not your entire database. HTH D

Re: [sqlite] how can i speed up inserts ?

2007-02-07 Thread Dennis Cote
completely safe. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Newbie SQL question

2007-02-06 Thread Dennis Cote
7;); sqlite> insert into t(b) values('three'); sqlite> pragma count_changes= 1; sqlite> delete from t where b like 't%'; 2 sqlite> select * from t; 1|one HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-06 Thread Dennis Cote
w records onto the ends of the tables. There might be a small speedup by pre-sorting the strings to be inserted within a transaction so that they are added to the unique index in order, but that may be offset by cost of doin

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-05 Thread Dennis Cote
record per transaction? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-05 Thread Dennis Cote
lect/Insert" version (which DRH agreed would most likely be the fastest "approved" mechanism), with the "Insert+Ignore/Insert+Select" version proposed by Dennis Cote, while being simplest, was the slowest. Windows Embedded (ms) (%) (ms) (%) V0 2718

Re: [sqlite] Re: DROP TABLE IF EXISTS my_table

2007-02-05 Thread Dennis Cote
Igor Tandetnik wrote: IF EXISTS clause is supported with SQLite v3.3.0 and up. Igor, Right you are, version 3.3.0. I was mistakenly looking at the entry for IF EXISTS on create and drop of triggers and views, that didn't happen until 3.3.8. Sorry if I caused any confusion. Dennis

Re: [sqlite] DROP TABLE IF EXISTS my_table

2007-02-05 Thread Dennis Cote
t syntax. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] database is locked

2007-02-05 Thread Dennis Cote
le process accessing the database. This page explains the nature of your error in more detail http://www.sqlite.org/cvstrac/wiki?p=DatabaseIsLocked HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] BNF for sqlite3?

2007-02-05 Thread Dennis Cote
y the lemon parser generator (also included in SQLite). You may be able to use that directly, or model your parser on it. If you build your own, be aware that the language does change from time to time. HTH Dennis Cote ---

Re: [sqlite] two process problem

2007-02-05 Thread Dennis Cote
Joe Wilson wrote: --- Dennis Cote <[EMAIL PROTECTED]> wrote: On 2/3/07, Tom Shaw <[EMAIL PROTECTED]> wrote: SQLSTATE[HY000]: General error: 1 SQL logic error or missing database and SQLSTATE[HY000]: General error: 8 attempt to write a readonly database Tom what wra

Re: [sqlite] two process problem

2007-02-04 Thread Dennis Cote
f, but your wrapper. It may have restrictions that sqlite does not. Dennis Cote

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-03 Thread Dennis Cote
execute the inserts. I thought he may have been using the sqlite3_exec function which includes the overhead of compiling the SQL code for each execution. In that case, I suspect that changing to the prepared statements should provide more benefit than the VDBE stack hack by eliminating this overhead. Dennis Cote

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-02 Thread Dennis Cote
); } // execution void myInsertFunction( const char* str) { do_stmt(bgn); sqlite3_bind_text(inString, 1, str, -1, SQLITE_STATIC); do_stmt(inString); sqlite3_bind_text(inObject, 1, str, -1, SQLITE_STATIC); do_stmt(inObject); do_stmt(cmt); } Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: UNIQUE constraint on column

2007-02-02 Thread Dennis Cote
ue to be the primary key) then it will be used to quickly locate any pre-existing record during the first insert. After that, all the needed pages will be cached and the subquery in the second insert should execute very quickly. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] "select into" ?

2007-02-02 Thread Dennis Cote
Table AS SELECT * FROM myOtherTable; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Appropriate uses for SQLite

2007-02-02 Thread Dennis Cote
re than science. So, what works and what doesn't? Let me know. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] How to specify collating sequences in an expression.

2007-02-01 Thread Dennis Cote
factor> ::= [ ] ::= | ::= | ::= ::= | | | | | | | | | | | | | | | Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] How to specify collating sequences in an expression.

2007-02-01 Thread Dennis Cote
h the database so that the standard collations rules can be used in triggers etc. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] How to specify collating sequences in an expression.

2007-02-01 Thread Dennis Cote
X1, X2, . . . , Xn, the collating sequence is effectively determined by considering X1 and X2, then combining this result with X3, and so on. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] How to specify collating sequences in an expression.

2007-02-01 Thread Dennis Cote
s and let you know how they say this should be parsed. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] How to specify collating sequences in an expression.

2007-02-01 Thread Dennis Cote
gate the NULL collation values that result from using different Implicit collations in a dyadic function. These rules may seem a little convoluted, but they are standardized, and clearly define the behavior. I think it's important for SQLite to try to maintain as much SQL standard compatibilit

Re: [sqlite] How To Use ATTACH?

2007-02-01 Thread Dennis Cote
bOption=1 WHERE rowid IN " "(SELECT Stocks.rowid FROM Stocks, Options " "WHERE Stocks.sStockSymbol = Options.sStockSymbol); "; eliminates two unnecessary calls to the string operator+= function. I also think it looks better. :-) HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Equivalent syntax?

2007-01-31 Thread Dennis Cote
ld translate to SQLite by simply removing the convert(...) clauses. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] UNIQUE constraint on column

2007-01-31 Thread Dennis Cote
o what you want to do. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] NULL always greater?

2007-01-31 Thread Dennis Cote
ly wan the max of the two columns you can use coalesc to convert nulls into zeros for the max function. max(coalesce(col1, 0), coalesce(col2, 0)) This will give a result of zero if both columns are null. HTH Dennis Cote --

Re: [sqlite] Abuse of the SQLite website

2007-01-30 Thread Dennis Cote
number is small relative to all the other clients, but you might be surprised. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: Re: selecting a random record from a table

2007-01-26 Thread Dennis Cote
itely looks like a bug to me. Nico Nicolas, You need to re-read the documentation for LIMIT and OFFSET at http://www.sqlite.org/lang_select.html In particular this sentence should clarify what is happening: "The opt

Re: [sqlite] sqlite3_column_blob and memory allocation

2007-01-26 Thread Dennis Cote
2) How long is this pointer valid? Till the next call of a sqlite3 function, till a next query etc.? Hartwig, re 1: No, you don't need to free the memory. re 2: It is valid until you step to the next record with sqlite3_step, or reset the query with sqlite3_reset or sqlite3_fi

Re: [sqlite] Re: selecting a random record from a table

2007-01-26 Thread Dennis Cote
large this will be a lot faster. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite3VB.dll

2007-01-25 Thread Dennis Cote
wer failure. The second sets the encoding to its default value, UTF-8, and shouldn't be needed. The second last (vdbe_trace) is also setting the value to its default. Furthermore this pragma can only be turned on in a special debug build of the sqlite dll. Increasing the cache and page size wi

Re: [sqlite] One DB fed from many DBs

2007-01-22 Thread Dennis Cote
jose isaias cabrera wrote: can unique id numbers have numbers missing? Jose, Yes, of course. The database will store whatever values you put in its columns. A unique column does not mean it its entries must be sequential, just that there can not be any duplicates. HTH Dennis Cote

Re: [sqlite] Retrieve Table Structure

2007-01-22 Thread Dennis Cote
/pragma.html#schema It gives the requested information for each column in a table. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] how would you allow users to re-order rows arbitrarily?

2007-01-08 Thread Dennis Cote
d item when the user moves an item. This is somewhat like the Dewey decimal system used by libraries to order books on shelves. Using a separate table would also allow multiple users to each have their own preferred sort order maintained by your application. HTH Dennis Cote

Re: [sqlite] When to release version 3.3.10?

2007-01-05 Thread Dennis Cote
much work you go through with each release, but suspect that a release after each crash or corruption bug is fixed, or new feature addition, would not be too onerous. Dennis Cote - To unsubscribe, send email

Re: [sqlite] Odd indexing behavior, 2nd request for help

2007-01-04 Thread Dennis Cote
statistics about your indexes which sqlite uses to select the optimal index when it prepares a query. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Error during compilation of sqlite-3.3.8

2007-01-04 Thread Dennis Cote
-with-tcl directive. Th tclConfig.sh is a shell script that will provide additional information to locate other parts of your TCL installation (like the tcl.h header file). HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] 2.8.6 Documentation

2007-01-03 Thread Dennis Cote
read most of the documentation from this script file directly, or if you have TCL installed you can probably expand this file into the desired HTML. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: [RESOLVED/PATCH] re: "Error: no such function: randstr" @ v3.3.8 on OSX

2007-01-03 Thread Dennis Cote
Year. ;-) Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Creating a database from inside a program

2007-01-02 Thread Dennis Cote
nd line. Note, you must quote the command so it gets passed to sqlite as a single string. sqlite3 newdatabase.db ".read schemafile.txt" HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] calculate age

2006-12-22 Thread Dennis Cote
2') becomes '2006-12-22' - '2002-12-22' which is converted to 2006 - 2002 without any warning or error and produces the correct result 4 Other than that it uses the reverse logic of my case statement. Get the difference of the years and subtract 1 or 0 depend

Re: [sqlite] calculate age

2006-12-22 Thread Dennis Cote
ops, I needed another set of brackets to ensure correct order of operations, and I had the comparison wrong (need <= not >=). This works: select case when date('2002-12-22', '+' || (strftime('%Y', 'now') - strftime('%Y

Re: [sqlite] calculate age

2006-12-22 Thread Dennis Cote
select case when date(dob, '+' || strftime('%Y', 'now') - strftime('%Y', dob) || ' years') >= date('now') then strftime('%Y', 'now') - strftime('%Y'

Re: [sqlite] Mathematical "power" operator?

2006-12-21 Thread Dennis Cote
ere is no power function in standard SQL. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Mathematical "power" operator?

2006-12-21 Thread Dennis Cote
://www.tcl.tk/community/tcl2004/Papers/D.RichardHipp/drh.html Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Mathematical "power" operator?

2006-12-21 Thread Dennis Cote
arty tools can do). Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Mathematical "power" operator?

2006-12-21 Thread Dennis Cote
mail_ma wrote: > I set the maillist is every one to send me ,so many mail is not good, > I want get a archive,what URL i can cancel it ? > please help me ??? > > > See the mailing list instructions at the top of http://www.sqlite.org/support.htm

Re: [sqlite] Mathematical "power" operator?

2006-12-20 Thread Dennis Cote
to tell a 3rd party tool which extensions it should load when it opens a database. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] delayed (batch) transactions

2006-12-20 Thread Dennis Cote
connection can batch its writes based on time as I suggested before. If you really need multiple writers you should probably look at a different database engine like PostgreSQL. Dennis Cote - To unsubscribe, send email to

Re: [sqlite] sqlite internationalization

2006-12-19 Thread Dennis Cote
Rashmi Hiremath wrote: Can anyone send me the code of C++ API for SQLite3.3.8. Check out http://www.sqlite.org/cvstrac/wiki?p=SqliteWrappers in particular the section on C++. I would suggest CppSQLite as it provides full access to sqlite with a very thin interface. HTH Dennis Cote

Re: [sqlite] delayed (batch) transactions

2006-12-19 Thread Dennis Cote
ion set transaction open to false HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Query Optimizer and INTEGER PRIMARY KEY

2006-12-19 Thread Dennis Cote
order to define their tables and indexes without redundant data being stored. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Query Optimizer and INTEGER PRIMARY KEY

2006-12-19 Thread Dennis Cote
/tktnew. SQLite should be able to execute these queries without even accessing the Posts table itself since all the required data is available in the index in the correct order. Dennis Cote - To unsubscribe, send email

Re: [sqlite] Is Column UNIQUE? How To

2006-12-18 Thread Dennis Cote
;); seq name unique -- -- 0 sqlite_autoindex_t_1 1 sqlite> pragma index_info('sqlite_autoindex_t_1'); seqno cid name -- -- -- 0 1 b HTH Dennis Cote -

Re: [sqlite] Check for empty table

2006-12-13 Thread Dennis Cote
@sqlite.org/msg19148.html I believe Igor's suggestion is optimal for SQLite. It may be faster to add a limit clause to the subquery for other database engines. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite3 close() run time errors

2006-12-13 Thread Dennis Cote
this index */ }; #endif Be advised, that after I do this I get a similar unresolved external error for _sqlite3_libversion. I'm trying to see what might be causing this, but the generated sqlite3.lib file looks OK on first inspection. HTH Dennis Cote

Re: [sqlite] sqlite3 close() run time errors

2006-12-12 Thread Dennis Cote
discovered with Borland IMPLIB. The fix I found is described under ticket 1291 at http://www.sqlite.org/cvstrac/tktview?tn=1291 For some reason implib doesn't generate the correct symbols when converting directly from the dll file.

Re: [sqlite] faster SELECT time on second run

2006-12-11 Thread Dennis Cote
e fast since it reads the file sequentially from start to finish with no seeking, whereas SQLite will seek back and forth as it reads database pages into memory. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] is blob compression worth it

2006-12-08 Thread Dennis Cote
l database. Normalization like this works just as well for non blob data. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Interbase to SQLite

2006-12-07 Thread Dennis Cote
ed J#, but that is not required to the best of my knowledge. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Interbase to SQLite

2006-12-06 Thread Dennis Cote
RB Smissaert wrote: Thanks for the tip. It sounds promising and I will try that out. Oops. I forgot to add the link http://www.borland.com/us/products/turbo/index.html to speedup locating it. Good Luck. Dennis Cote

Re: [sqlite] Interbase to SQLite

2006-12-06 Thread Dennis Cote
ler you can use SQLite directly, or through one of the C++ wrappers. I suspect that this will produce an application that is about as fast a you will get for moving data from Interbase to SQLite. HTH Dennis Cote -

Re: [sqlite] Re: Re: ip2long

2006-12-05 Thread Dennis Cote
<< 16) + (substr(ip, 9, 1) << 8) + substr(ip, 11, 3) when substr(ip, 11, 1) = '.' then -- 2 digit third quad (substr(ip, 1, 3) << 24) + (substr(ip, 5, 3) << 16) + (substr(ip, 9, 2) << 8) + substr(ip, 12, 3) else -- 3 digit third quad (substr(ip, 1, 3) << 24) + (substr(ip, 5, 3) << 16) + (substr(ip, 9, 3) << 8) + substr(ip, 13, 3) end end end from t; Boy was I pissed the first time I typed that in and all I got was "SQL error: near "when": syntax error". ;-) FYI, this expression produces a VDBE program with 895 instructions. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
that julian day numbers can express dates back to 4700 BC, but Excel can't. The testing needed to fix the dates for excel's bug only applies to dates in the first two month of the year 1900, so it can probably be safely skipped

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
nday('now') - julianday('1899-12-30') end as excel_date; If all your dates are after 1900-02-28 then you can safely skip the test and use only the later base date. select julianday('now') - julianday('1899-12-30') as excel_date; Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
...> ; 39054 sqlite> I can' t account for the other off by one error though. You could, of course, just add 2 instead of 1 to get the right date from excel. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
teger) || '-' || substr('00' || (cast(20061204 / 100 as integer) % 100), -2, 2) || '-' || substr('00' || (20061204 % 100), -2, 2) ) - julianday('1900-01-01')

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
s any measurable speed difference. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
[EMAIL PROTECTED] wrote: Thanks , will try that. What is as excel_date? Is this a variable or is this jus plain SQL against SQLite? Bart, excel_date is just a normal SQL alias name for the complicated expression. The string 'execl_date' will be returned as the name of this result column.

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
ger) % 100) || '-' || (datefield % 100) ) - julianday('1900-01-01') as integer ) as excel_date from mytable; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Dealing with dates in the format yyyymmdd

2006-12-04 Thread Dennis Cote
as integer ) as excel_date from mytable; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite3_open (new Win32 thread)

2006-12-04 Thread Dennis Cote
sion command to detect if your database has been initialized (search for previous posts). HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: creating own pragmas

2006-12-01 Thread Dennis Cote
is right, you should store your password in a table. If you are concerned about the password being saved in the database, then you could use a temporary table, or even attach a :memory: database to hold the table that contains the password. In any case the saved password is available to your encrypt and decrypt functions. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Preallocating fixed disk space for database ...

2006-12-01 Thread Dennis Cote
your inserts in a transaction. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] for what reason :memory: is much slower than /dev/shm/dummy.db

2006-12-01 Thread Dennis Cote
HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: sqlite_open

2006-12-01 Thread Dennis Cote
open a database to see if the user_version has the expected value. If not you know you have some other kind of file, if the file existed before you did the sqlite3_open, or a newly created empty database file that needs to be

Re: [sqlite] problem with Triggers

2006-11-30 Thread Dennis Cote
return rc; } This way you are sure you have all the functions registered with each connection you use. Now you can safely execute any SQL statement. If it causes the trigger to fire, it will have the correct user defined functio

Re: [sqlite] case insensitivity

2006-11-28 Thread Dennis Cote
equal values of the bar are scattered around with different value of p. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Time formatting

2006-11-28 Thread Dennis Cote
|| case when strftime('%H:%M', '12:00', 'localtime') < '12:00' then strftime('-%H:%M', '00:00', 'utc') else strftime('+%H:%M', '00:00', 'utc')

Re: [sqlite] Cannot we reuse an sqlite3_stmt to insert multiple rows ?

2006-11-22 Thread Dennis Cote
-- To unsubscribe, send email to [EMAIL PROTECTED] - See this thread http://www.mail-archive.com/sqlite-users@sqlite.org/msg14937.html for some example programs that

Re: [sqlite] beginner question

2006-11-17 Thread Dennis Cote
give the same results. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] select from commandprompt with output to file

2006-11-17 Thread Dennis Cote
he sqlite commands file, which will write its output to the file testfile.txt in the current directory (which will be C:\test\ReadCodes). HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL tree and deepness level

2006-11-14 Thread Dennis Cote
the depths to inserts spaces to produce an indented report from the tree. Alternatively, you could create a user defined function that simply counts the number of / separator characters in the path string to determine the depth of a node. This would almost certainly be fast

Re: [sqlite] Trouble with Trigger

2006-11-13 Thread Dennis Cote
triggers. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] PRAGMA table_info() reveals primary keys

2006-11-10 Thread Dennis Cote
sqlite.org/pragma.html. David, You should create a documentation bug ticket so these things will get fixed. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Date data type

2006-11-08 Thread Dennis Cote
strings in your database you can do this: select * from t where date < '2006-07-04 18:00:10'; If you store the julian day numbers in your database you can do this: select * from t where date < julianday('2006-07-04 18:00:1

Re: [sqlite] Question on Sqlite DB

2006-11-07 Thread Dennis Cote
This will open (or create) the database file and then execute all the SQL statements in the file mysql.txt. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] String --> Integer date formatting

2006-11-06 Thread Dennis Cote
s In particular the function julianday(datestring) will return a julian day number for a suitably formatted date string. The supported date formats are from ISO-8601, or -MM-DD, so you will have to use substr and concatenation (||) to rearrange

Re: [sqlite] Using BLOBs in where fields

2006-11-03 Thread Dennis Cote
; select id from t where subblob(data, 100, 4) = X'DEADBEEF'; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Sqlite DB file sizes

2006-11-01 Thread Dennis Cote
eed to pay the cost of the additional storage overhead. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite and McAfee Anti-Virus

2006-10-31 Thread Dennis Cote
rom a lot of potential customers is very persuasive to a commercial enterprise. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] efficient way to figure out if a table is empty

2006-10-30 Thread Dennis Cote
a table has any records. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: Regarding sqlite3_exec

2006-10-25 Thread Dennis Cote
never use conditions on your queries. If your query returns a subset of the rows in a table this carefully maintained count of all the rows in the table is useless. Dennis Cote. - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Sqlite & Matlab

2006-10-24 Thread Dennis Cote
te to matlab formats. It also opens and closes the database file for each query which can be expensive. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Regarding sqlite3_exec

2006-10-24 Thread Dennis Cote
to prepare and execute a second count query unless the result set is very large. With large results the execution time of the count query dominates, and the overhead time to prepare the query becomes insignificant. It really doesn't take that long to prepare a count quer

<    3   4   5   6   7   8   9   10   11   12   >