Re: [sqlite] Worked perfectly!

2007-06-26 Thread Dennis Cote
litenoob wrote: -- #/bin/sh ROW_ID=`sqlite3 test.db < FYI, the last part of the select is superfluous. You can simply do this: insert into t values(1,2); select last_insert_rowid(); HTH Dennis C

Re: [sqlite] How do I close the command line window

2007-06-20 Thread Dennis Cote
a .read command on the command line instead of the -init option like this: sqlite3 mydatabasefile ".read BulkinsertItems.sql" with the BulkinsertItems.sql file containing: .separator \t .import BulkItems.txt items .quit HTH D

Re: [sqlite] Step Query

2007-06-20 Thread Dennis Cote
r framework is freely licensed open source so others could use it as well? It sounds interesting, and I would like to take a look at it if that is possible. Is there a link to the source? Dennis Cote - To uns

Re: [sqlite] Age calculation on literal

2007-06-01 Thread Dennis Cote
006-10-14'))) end end HTH Dennis Cote

Re: [sqlite] Age calculation on literal

2007-05-31 Thread Dennis Cote
RB Smissaert wrote: Thanks to Dennis Cote I got a nice way to get the age from the date in the form '-nmm-dd'. It works fine when I run it on a field, but when I run it on a literal date it gives me 100 too much: select case when date('2002-01-01', '+' || (strftime('%Y', 'now') - strftime

Re: [sqlite] sqlite internal structs don't make use of C bitfields?

2007-05-30 Thread Dennis Cote
. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite internal structs don't make use of C bitfields?

2007-05-30 Thread Dennis Cote
in the first byte and the code only checks for zero vs nonzero values on that byte (then again that may not be safe if other combined bitfield are set nonzero before the isInited field is set). If its safe, you could save another byte per structure. Dennis Cote

Re: [sqlite] sqlite internal structs don't make use of C bitfields?

2007-05-30 Thread Dennis Cote
platform applications. I suspect that is the reason they aren't used. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Why doesn't this UPDATE work?

2007-05-28 Thread Dennis Cote
. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Why doesn't this UPDATE work?

2007-05-28 Thread Dennis Cote
for each row in table 1. Each evaluation returns the value of column3 from a different row in table2, the row where the column2 and column2 values match the row being updated. HTH Dennis Cote - To unsubscribe, send email

Re: [sqlite] index using and explain using question

2007-05-25 Thread Dennis Cote
elect * from t; order from detail -- -- -- 0 0 TABLE t HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] left outer join optimization

2007-05-23 Thread Dennis Cote
out of the services table. select id as cust_id, service as service_id from customers where service not null; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] The need for sqlite3_encode_binary and sqlite3_decode_binary

2007-05-10 Thread Dennis Cote
data to an SQL statement without worrying about special quoting. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] perfomance degradation for expr "foo = X or bar =X"

2007-05-09 Thread Dennis Cote
) This will find points in a circumscribed square around the center of the circle. The distance calculation would eliminate those points outside the circle (i.e. the points in the corners of the squares). Dennis Cote - To unsubscribe

Re: [sqlite] perfomance degradation for expr "foo = X or bar =X"

2007-05-09 Thread Dennis Cote
= 5 intersect select rowid from ex4 where y = 7 ); The intersect operation allows each of the sub-selects to be executed using an independent index, and the outer select uses the implicit index on the rowi

Re: [sqlite] Conditional table select

2007-05-09 Thread Dennis Cote
a query that references the view. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] May I ask why the source distribution mechanism was changed starting with 3.3.14?

2007-05-04 Thread Dennis Cote
makes many peoples lives at least a little easier and hence better. I hope the rewards have been worth the effort. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] create trigger on view

2007-05-03 Thread Dennis Cote
or modify the required rows in your view cache table whenever a record is inserted or modified in the base tables. A trigger on the view will only fire when you access the view. HTH Dennis Cote - To unsubscribe, send

Re: [sqlite] FW: Performance problem with complex where clause

2007-05-02 Thread Dennis Cote
Id" = '06d15df5-4253-4a65-b91f-cca52da960fe' The extra join gives sqlite an opportunity to use the source id index for the first join and the target id index for the second join. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Best way to optimize this query?

2007-05-02 Thread Dennis Cote
ements but will build two records (one in the table and one in the index) for each record. I seem to be rambling so I will stop now. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] FW: Performance problem with complex where clause

2007-05-02 Thread Dennis Cote
S ne on l."Source.Id" = ne.Id Where l."Target.Id" = '06d15df5-4253-4a65-b91f-cca52da960fe' UNION Select ne.* From Link AS l Join Entity AS ne on l."Target.Id" = ne.Id Where l."Source.Id&quo

Re: [sqlite] FW: Performance problem with complex where clause

2007-05-02 Thread Dennis Cote
urce.Id" = '06d15df5-4253-4a65-b91f-cca52da960fe' This should run in a reasonable time given that you have indexes on Link("Target.Id") and Link("Source.Id") HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL query help (mutiple joins)

2007-05-01 Thread Dennis Cote
Allan, Mark wrote: Excellent, thanks for your help. Mark, For future reference, your posts could use a little more trimming. There is no need to quote the entire string of messages from your original post on each reply. :-) Dennis Cote

Re: [sqlite] SQL query help (mutiple joins)

2007-05-01 Thread Dennis Cote
RelaxedSpiroTable as r on r.TestID=t.ID where f.EVC > 2.0 and r.FVC > 2.0; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL query help (mutiple joins)

2007-05-01 Thread Dennis Cote
oTable as r on r.TestID=t.ID where f.EVC > 2.0 and r.FVC > 2.0; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite and borland c++ builder

2007-04-30 Thread Dennis Cote
sqlite3.h header into a C++ source file. It might help to post to the newsgroups saying you are also having problems, or to vote on the bug in the QC system. HTH Dennis Cote - To unsubscribe, send email to [EMAIL

Re: [sqlite] more test suite problems on Windows

2007-04-27 Thread Dennis Cote
LITE_NO_SYNC=1 $(TEMP_STORE) \ -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \ libsqlite3.la $(LIBTCL) Are you suggesting that -DSQLITE_NO_SYNC=1should be added to TCC so it affects all compiles? Dennis Cote

Re: [sqlite] more test suite problems on Windows

2007-04-27 Thread Dennis Cote
system? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] more test suite problems on Windows

2007-04-26 Thread Dennis Cote
for the new test. Anyway, misc7 works now. Have you tried to run the latest laststmtchanges.test on Windows? I am still getting a failure that shows the same double counting that was originally reported on the mailing list. laststmtchanges-1.2.1... Expected: [5] Got: [10] Dennis Cote

Re: [sqlite] Import quoted and NULL values with .import

2007-04-26 Thread Dennis Cote
s a string 'NULL' not as a null value. There is no way to get SQLite to import null values. All you can do is run a few update statements after you do the import that change the empty strings into real nulls. update table t set coln = null where coln = ''; HTH D

Re: [sqlite] License Queries

2007-04-26 Thread Dennis Cote
to do any changes to sqlite, but i am more concerned about the licensing issues of the modules which are accesing sqlite. Sqlite is public domain. You can apply any license you want to any program that access sqlite. HTH Dennis Cote

Re: [sqlite] An explanation?

2007-04-26 Thread Dennis Cote
There is nothing to be gained by adding it to the index again. Your first query will be satisfied by a binary search in the title table looking for the id. It won't use the index. Your second query will be satisfied by a binary search in the TitleIdx index looking for a matching title. It won

Re: [sqlite] more test suite problems on Windows

2007-04-26 Thread Dennis Cote
thought someone would have let you know about that long ago. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] yet another test suite problem on Windows

2007-04-25 Thread Dennis Cote
call from within TCL, or does this command have to be written in C? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] another test suite failure under Windows

2007-04-25 Thread Dennis Cote
I think it should be skipped much like the tests that depend upon the SQLITE_MEMDEBUG being defined. Does anyone with better TCL knowledge have any recommendations for either making these tests work under Windows, or detecting the OS so the tests can be skipped when not running under that OS?

Re: [sqlite] Borland C++Builder linking issue

2007-04-25 Thread Dennis Cote
Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] test fixture tcl errors on Windows

2007-04-24 Thread Dennis Cote
is a subtle bug here or not. I suspect that perhaps the file isn't really being closed until the script exits.Does this seem possible? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] test fixture tcl errors on Windows

2007-04-24 Thread Dennis Cote
ts using MinGW/MSYS. I haven't had any problems before, but I haven't built sqlite from source since around version 3.3.12. Do any of you TCL experts have any idea what could be wrong? TIA Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Copy records from one DB to another

2007-04-24 Thread Dennis Cote
, You have it correct. Open the DB1 sqlite3 db1.db > attach db2.db as db2; > insert into table1 select * from db2.table1; > .quit You do basically the same thing using the C API. Open one database, then issue an attach command for the other. HTH De

Re: [sqlite] An explanation?

2007-04-23 Thread Dennis Cote
portion of the entire database to pay for their overhead. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] An explanation?

2007-04-23 Thread Dennis Cote
and then looking up 150,200 records in the main table is simply more work than scanning the entire table of 300,000 records once. This case does not benefit from indexing, and in fact it is slowed down on both lookups and inserts. Dennis Cote

Re: [sqlite] An explanation?

2007-04-23 Thread Dennis Cote
. Can you retry the test after running an ANALYZE command? Are the a and b values in your sample code uniformly distributed? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] TRANSACTION

2007-04-23 Thread Dennis Cote
multiple SQL statements, so you might be able to use a trigger to do what you want if you execute a trigger in a transaction. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Submitting patches?

2007-04-23 Thread Dennis Cote
the Contributed Code section here http://www.sqlite.org/copyright.html HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] beginner: Is posible inside a result of a function call another function for delete or update the row??

2007-04-20 Thread Dennis Cote
for details. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: Show and describe

2007-04-20 Thread Dennis Cote
definitions. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: Re: One statement column to column copy

2007-04-20 Thread Dennis Cote
a different value for each row in the parameters table. for each row in table parameters set value = same as the current row of parameters> HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Is this a valid syntax

2007-04-17 Thread Dennis Cote
the comparisons of the fields from both tables should affect the join. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Is this a valid syntax

2007-04-17 Thread Dennis Cote
is non standard. If you want your SQL code to be portable to other database engines you should use the standard syntax that Paul suggested. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] trim available ??

2007-04-16 Thread Dennis Cote
Stef Mientki wrote: I don't know which version I'm running, how can I detect that ? Stef, You can call sqlite3_libversion (see http://www.sqlite.org/capi3ref.html#sqlite3_libversion for details). HTH Dennis Cote

Re: [sqlite] Still getting "Insertion failed because database is full." errors

2007-04-13 Thread Dennis Cote
file system such as http://sourceware.org/jffs2/ that uses "wear leveling" algorithms to spread the writes over all the flash devices blocks if you are writing often. HTH Dennis Cote - To unsubscribe,

Re: [sqlite] Help with SQL syntax. Ticket #2296

2007-04-13 Thread Dennis Cote
for that missing nugget. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Help with SQL syntax. Ticket #2296

2007-04-12 Thread Dennis Cote
I read it) and backwards compatibility seems to be the most important thing here.. This behavior is prohibited by the standard. Dennis Cote

Re: [sqlite] Help with SQL syntax. Ticket #2296

2007-04-12 Thread Dennis Cote
a FROM t1 UNION SELECT b, a from t1 ORDER by a, b SELECT a as c, b as d FROM t1 UNION SELECT b as c, a as d from t1 ORDER by c, d HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite join-mechanisms question

2007-04-12 Thread Dennis Cote
p2004/page-001.html The discussion of indexes starts about slide 40 and joins are on slide 57. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Performance analysis of SQLite statements

2007-04-12 Thread Dennis Cote
download a free trial. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-12 Thread Dennis Cote
Darren Duncan wrote: At 3:33 PM -0600 4/11/07, Dennis Cote wrote: You have lost me here. If this transaction is considered successful without executing the middle step (which is the same as executing it and then undoing that execution) then that step does not belong in this transaction

Re: [sqlite] Re: SQLite and nested transactions

2007-04-12 Thread Dennis Cote
Can you explain the difference? Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-12 Thread Dennis Cote
in the discussion. Again, I agree fully. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-12 Thread Dennis Cote
h as swapping files on open and save rather than using transactions, so that real transactions can be used to update the active file atomically. Dennis Cote . - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Failed subquery (possible bug?)

2007-04-11 Thread Dennis Cote
und a real bug. You should open a bug report at http://www.sqlite.org/cvstrac/tktnew HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-11 Thread Dennis Cote
complicated. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-11 Thread Dennis Cote
[EMAIL PROTECTED] wrote: I'm not sure if I can make intelligent decisions about choosing what I commit to the database. Things don't look too bright for you or your users then. ;-) I couldn't resist. :-) Dennis Cote

Re: [sqlite] Re: SQLite and nested transactions

2007-04-11 Thread Dennis Cote
transaction support would help *that* problem. Likewise. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: SQLite and nested transactions

2007-04-11 Thread Dennis Cote
nformation its nearly impossible decide if it must be done this way or not. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite and nested transactions

2007-04-11 Thread Dennis Cote
savepoints. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite and nested transactions

2007-04-10 Thread Dennis Cote
ed or fail on its own, because obviously it didn't matter if it succeeded or failed in the first place. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQLite and nested transactions

2007-04-10 Thread Dennis Cote
don't want to execute the first and last statement but skip the middle two. It seems to me any application that can tolerate some statements in a transaction not executing could factor those statements out into a separate transaction. D

Re: [sqlite] sqlite3_create_module()

2007-04-09 Thread Dennis Cote
sqlite.org/cvstrac/wiki?p=VirtualTables for documentation on the virtual table interface. There is a lot of documentation in the wiki, especially for newer features. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] last N records

2007-04-09 Thread Dennis Cote
/gmane.comp.db.sqlite.general/16175/match=fifo for details. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite3.exe .import command

2007-04-09 Thread Dennis Cote
. ;-) See http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/shell.c=1.160 and search for "import". HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Some questions on hierarchical data (nested set model)

2007-04-09 Thread Dennis Cote
ameters only once (because the values remain the same) and execute all the queries at once. I think this is not possible, but I could be wrong. You will need to bind the parameters to each prepared statement. HTH

Re: [sqlite] SQLite and nested transactions

2007-04-09 Thread Dennis Cote
t;); else sqlite3_exec("commit"); } void rollback_nested_transaction() { transaction_failed = true; commit_transaction(); } HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL and SQLite pronounciation?

2007-04-05 Thread Dennis Cote
ards, I am glad to see that ANSI got it right. ;-) Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] efficacy of indexing a blob

2007-04-05 Thread Dennis Cote
d indexing on them. I wouldn't mess with trying to store invalid utf-8 bytes in a text field. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL and SQLite pronounciation?

2007-04-05 Thread Dennis Cote
Martin Pelletier wrote: Hearing "sequel" for SQL always makes me cringe. Me too! That is what prompted my original message. I just wanted to see if I was perhaps the only one who was bothered by that pronunciation. Thanks for the confirmation. D

[sqlite] SQL and SQLite pronounciation?

2007-04-04 Thread Dennis Cote
t; or something else like "sequel light"? I prefer "ess cue el" and "ess cue light" myself. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL help

2007-04-03 Thread Dennis Cote
on of true as anything except zero. I think its reasonable for an application to assume that a database field has a suitable value if it's the application that puts those values (i.e. 0 or 1 only for a boolean column) into the database. D

Re: [sqlite] SQL help

2007-04-03 Thread Dennis Cote
. It will eliminate the comparisons in your application code and return the allComplete value directly from the query. It's really very slick. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL help

2007-04-03 Thread Dennis Cote
plete from tech_modules where tech_id = ? and coll_id = ?; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] SQL language issue, ticket #2282

2007-04-03 Thread Dennis Cote
WHEN clauses on an INSTEAD OF trigger but since SQLite already accepts it I think you are fine with your current implementation. HTH Dennis Cote /||/ - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Version 3.3.14

2007-04-02 Thread Dennis Cote
get this to compile I need to remove the first comma: static const Mem nullMem = {{0}, 0.0, "", 0, MEM_Null, MEM_Null }; This seems like a real aggregate initializer error. Or possibly, you are using an extension or some newer C variant that accepts this incomplete in

Re: [sqlite] SQLite v/s SQLite3 Performance Assay

2007-03-30 Thread Dennis Cote
handling code (in sqlite2 they were handled with special in memory tree code). This may be the cause of part of your speed difference. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: Python-Sqlite Unicode characters

2007-03-29 Thread Dennis Cote
t. Even if I'm not being malicious, consider what happens if I innocently put text containing quotes into the description field. This really is a better idea, but I'm not sure how you do it from the Python wrapper. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Difference in these indices?

2007-03-28 Thread Dennis Cote
) values (''test'', ''its a string with "quotes" in it.'');' which sqlite will treat as a single literal string which can be inserted into your log like this logSQL = "insert into log values (" & SQuote(strSQL) & ")"; execute(logSQL); HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Difference in these indices?

2007-03-28 Thread Dennis Cote
which they seldom are), collation, and view names. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Difference in these indices?

2007-03-28 Thread Dennis Cote
"ID" strSQL = "create " & Quote(strTable) & "(" & Quote(strColumn) & " INTEGER PRIMARY KEY)" HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Difference in these indices?

2007-03-28 Thread Dennis Cote
econd code path to sqlite. It might make sense to create a separate standalone utility program (like sqlite3_analyzer) that reuses some the sqlite source to do bulk inserts into a table in a database file as fast a possible with out having to worry about locking or journaling etc. D

Re: [sqlite] Difference in these indices?

2007-03-27 Thread Dennis Cote
print "Test ""quoted"" strings." will output Test "quoted" strings. You can do the same with the strings you are building to send to SQLite. Using the following VB statement strSQL = "create """ & strTable & "

Re: [sqlite] CREATE INDEX performance

2007-03-27 Thread Dennis Cote
his makes it take 5 times as long. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Difference in these indices?

2007-03-27 Thread Dennis Cote
n to standard SQL. You should quote identifiers such as table and column names with double quotes. Create table 'table1'([ID] INTEGER PRIMARY KEY) should be: Create table "table1"("ID" INTEGER PRIMARY KEY) HTH Dennis Cote -

Re: [sqlite] CREATE INDEX performance

2007-03-27 Thread Dennis Cote
timings in the seconds range rather than minutes (This assumes that you are not running into some cache size problems that slow down the larger data set disproportionately). Dennis Cote - To unsubscribe, send email

Re: [sqlite] Questions on views

2007-03-27 Thread Dennis Cote
) to follow the execution of an SQL statement by the virtual machine (at least for simple statements). Following the logic of a complex statements can be challenging because there are no human friendly text labels for branches, table and index names, or runtime variables. HTH Dennis Cote

Re: [sqlite] Questions on views

2007-03-27 Thread Dennis Cote
a single index per table per query. The way sqlite uses indexes is explained in the slide show at http://www.sqlite.org/php2004/page-001.html This may help you pick the best columns to index for your application. HTH Dennis Cote

Re: [sqlite] Questions on views

2007-03-27 Thread Dennis Cote
izing your SQL. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Issue with trailing blanks

2007-03-26 Thread Dennis Cote
Joel Cochran wrote: I do think more and more that the solution for me is to trim the trailing blanks before INSERTing them into SQLite. That will be your best solution, and it will make your database files smaller too since sqlite won't be storing the trailing spaces. Dennis Cote

Re: [sqlite] round and storage class

2007-03-26 Thread Dennis Cote
n use the typeof() function to get the type (storage class) of a field. select typeof(round(1.234)); You can use the cast(x as type) syntax to change the type of the round result to integer. select cast(round(1.234) as integer);

Re: [sqlite] Any way to do this faster?

2007-03-26 Thread Dennis Cote
. Is it usually better to re-index after deletes? Indexes are updated automatically as records are added and deleted from a table, that's why they add overhead if they are not serving some purpose. Your index will be correct after you delete the records from tableB. HTH Dennis Cote

Re: [sqlite] Any way to do this faster?

2007-03-26 Thread Dennis Cote
the gift for formulating short clear direct answers that some other (like Igor and Richard) do. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Any way to do this faster?

2007-03-26 Thread Dennis Cote
exists (select id from t ableA where tableA.id = tableB.id); 0|0|TABLE tableB 0|0|TABLE tableA USING PRIMARY KEY Note that your index on tableB.id is not used and could be eliminated unless it serves another p

<    1   2   3   4   5   6   7   8   9   10   >