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

2007-01-26 Thread Dennis Cote
r table is 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
ond 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 will speed up your code safely i

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

2007-01-08 Thread Dennis Cote
m 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 preferre

Re: [sqlite] When to release version 3.3.10?

2007-01-05 Thread Dennis Cote
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 to [EMAIL

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

2007-01-04 Thread Dennis Cote
with 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
ve. 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
ing 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 depending upon the actual date. Dennis C

Re: [sqlite] calculate age

2006-12-22 Thread Dennis Cote
when date('2002-12-22', '+' || (strftime('%Y', 'now') - strftime('%Y', '2002-12-22')) || ' years') <= date('now') then strftime('%Y', 'now') - strftime('%Y', '2002-12-22') else strftime('%Y', 'now') - strftime('%Y', '2002-12-22') -1 end as age HTH

Re: [sqlite] calculate age

2006-12-22 Thread Dennis Cote
when date(dob, '+' || strftime('%Y', 'now') - strftime('%Y', dob) || ' years') >= date('now') then strftime('%Y', 'now') - strftime('%Y', dob) else strftime('%Y', 'now') - strftime('%Y', dob) - 1 end as age from t; HTH Dennis C

Re: [sqlite] Mathematical "power" operator?

2006-12-21 Thread Dennis Cote
. 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-20 Thread Dennis Cote
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
. This 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

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
t 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
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
-- -- 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
fter 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 - To un

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

2006-12-12 Thread Dennis Cote
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. HTH Dennis Cote

Re: [sqlite] is blob compression worth it

2006-12-08 Thread Dennis Cote
. 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
#, 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
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 - To unsubscribe

Re: [sqlite] Re: Re: ip2long

2006-12-05 Thread Dennis Cote
t; 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. Dennis Cote

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

2006-12-04 Thread Dennis Cote
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
) || '-' || substr('00' || (cast(20061204 / 100 as integer) % 100), -2, 2) || '-' || substr('00' || (20061204 % 100), -2, 2) ) - julianday('1900-01-01') as integer ) as excel_date ; HTH Dennis Cote

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

2006-12-04 Thread Dennis Cote
urable 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
) 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
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
atabase 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
Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: sqlite_open

2006-12-01 Thread Dennis Cote
n 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 initialize

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
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
strftime('%H:%M', '12:00', 'localtime') < '12:00' then strftime('-%H:%M', '00:00', 'utc') else strftime('+%H:%M', '00:00', 'utc') end; When I run this here I get: 2006-11-28T10:29:51.091-07:00 Which is the correct timezone offset for MST. HTH Dennis C

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
it will 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
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
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 faster and easier to use. HTH D

Re: [sqlite] Trouble with Trigger

2006-11-13 Thread Dennis Cote
of such 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
/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:10'); HTH Denni

Re: [sqlite] Question on Sqlite DB

2006-11-07 Thread Dennis Cote
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
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 your dates. HTH Dennis Cote

Re: [sqlite] Sqlite DB file sizes

2006-11-01 Thread Dennis Cote
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
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
le 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
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
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
o 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 query. HTH D

Re: [sqlite] blob vs. string in bound parameters

2006-10-23 Thread Dennis Cote
[EMAIL PROTECTED] wrote: There is good reason for this, actually. And that pretty definitively answers the question of whether or not this is a bug. :-) Dennis Cote - To unsubscribe, send email to [EMAIL

Re: [sqlite] database corrouption during power failure

2006-10-23 Thread Dennis Cote
finalize(s); switch (sync) { case 0: // off case 1: // normal case 2: // full } It simply executes the PRAGMA and collects the result. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] blob vs. string in bound parameters

2006-10-23 Thread Dennis Cote
from t; blob text sqlite> select count(*) from t where cast(a as blob) = 'test'; 0 sqlite> select count(*) from t where cast(a as blob) = X'74657374'; 2 HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: bind with select?

2006-10-23 Thread Dennis Cote
sqlite3_column_text(s, 1); char* barval = sqlite3_column_text(s, 2); // foo and var bound to current values } sqlite3_finalize(s); HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] insertion time

2006-10-23 Thread Dennis Cote
is a unit in a traditional number system, still widely used in India and Bangladesh, equal to a hundred thousand. A hundred lakhs make a crore. So Lloyd is doing 3M insert or ignores. Lloyd, What do you mean by "130 seconds of overhead

Re: [sqlite] Select with join does not returning same-named columns

2006-10-20 Thread Dennis Cote
would be sure. :-) HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Select with join does not returning same-named columns

2006-10-19 Thread Dennis Cote
, tblLarger.* from ... HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] documentation on the webserver

2006-10-19 Thread Dennis Cote
ction available. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Error in SQLite's CSV output

2006-10-17 Thread Dennis Cote
se the API functions. You haven't said what language you are programming in. Perhaps you need some help using the C API from your chosen language. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] bind with select?

2006-10-17 Thread Dennis Cote
s by changing the bound value at runtime. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] database corrouption during power failure

2006-10-16 Thread Dennis Cote
for FULL synchronous operation. The SQLITE_NO_SYNC flag is a define that can be passed to the compiler while buiding your code. Look in your makefile or your compiler's options setting dialog for -DSQLITE_NO_SYN

Re: [sqlite] Document "Compilation Options For SQLite" is outdated

2006-10-16 Thread Dennis Cote
be added to the documentation. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Escaping wildcards when using LIKE & UTF-16

2006-10-16 Thread Dennis Cote
are using with the like operator for the columns that you are trying to match. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Escaping wildcards when using LIKE & UTF-16

2006-10-13 Thread Dennis Cote
ind_text(query, idx, users_album, -1, SQLITE_STATIC); } ... // repeat for all columns // execute the query do { rc = sqlite3_step(query); if (rc == SQLITE_ROW) { // use sqlite3_column_* to retrieve results } } while rc != SQLITE_DONE HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Escaping wildcards when using LIKE & UTF-16

2006-10-13 Thread Dennis Cote
have to do it yourself. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] insert using underscore as literal

2006-10-12 Thread Dennis Cote
sqlite> select * from t; _ sqlite> insert into t values ('_2_'); sqlite> insert into t values ('__4__'); sqlite> select * from t; _ _2_ __4__ sqlite> HTH Dennis Cote - To unsubscribe,

Re: [sqlite] Select ignoring accents

2006-10-12 Thread Dennis Cote
's comapre function whenever it needs to compare two values while sorting or indexing. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Terminating long query in C ?

2006-10-10 Thread Dennis Cote
ion on sqlite3_interrupt API function. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] new sqlite-based webserver

2006-10-10 Thread Dennis Cote
] - It works from here (western Canada) at 10:45 MDT. I also see this name resolved to IP address 62.104.138.84. It's a little slow, taking about 10 seconds to load, but not too bad. Dennis Cote

Re: [sqlite] Primay key trait is lost when copying across tables

2006-10-06 Thread Dennis Cote
as (); attach database 'DB.db3' as V1; begin; insert into table1 select * from V1.table1; commit; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Inserting Values in Bulk

2006-10-05 Thread Dennis Cote
of inserts it is still important to ensure they are done inside a transaction to get good performance. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] import syntax and null values

2006-10-02 Thread Dennis Cote
uotes in quoted strings) that would also be a good enhancement to sqlite. You should also submit a patch if you do this. Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] import syntax and null values

2006-10-02 Thread Dennis Cote
don't think you can change the output handling (by default a NULL and an empty string look the same). There would also need to be a mechanism to set the .nullvalue string back to NULL to turn off the input substitution. Dennis Cote

Re: [sqlite] import syntax and null values

2006-10-02 Thread Dennis Cote
that it does recognize the .nullvalue string on input, and binds a null value for that column. If you do you should submit a patch, others may find this useful. HTH Dennis Cote - To unsubscribe, send email to [EMAIL

Re: [sqlite] record size limit ???

2006-09-29 Thread Dennis Cote
and additional information you might want to consider. This info is at http://www.sqlite.org/faq.html#q10 First, the maximum record size is 2^30 bytes not 2^31 bytes. Second, only the first 31 columns of a table are are candidates for certain optimizations. HTH Dennis Cote

Re: [sqlite] Multiple Updates

2006-09-29 Thread Dennis Cote
BEGIN", NULL, NULL, NULL); for (...) { } sqlite3_exec(db, "COMMIT", NULL, NULL, NULL); HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] record size limit ???

2006-09-29 Thread Dennis Cote
they appear in the create statement. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Problem with .import -- SOLVED

2006-09-29 Thread Dennis Cote
, if it existed, would mention this sort of detail anyway. When all else fails, the source is the ultimate documentation. :-) Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Problem with .import

2006-09-28 Thread Dennis Cote
11 2.000 0.025 6.000 I suspect you may have trailing spaces at the ends of your lines. The .import command isn't very smart about things like that. Your separator is set to one space, not arbitrary whitespace. It there is another

Re: [sqlite] "contains" function

2006-09-28 Thread Dennis Cote
_function(db, "point_in_rect", 6, SQLITE_UTF8, NULL, point_in_rect, NULL, NULL); HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] List all views in my sqlite-database - possible?

2006-09-26 Thread Dennis Cote
sqlite_master where type = 'view'; HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Please test check-ins [3445] and [3446]

2006-09-26 Thread Dennis Cote
. Dennis Cote P.S. Attaching files to email is getting to be a real pain. On my first attempt I attached the raw text files. That message was rejected by the qmail-send program at sqlite.org because it was too big (> 30K). My second attempt packed all the text files into a single zip f

Re: [sqlite] The term "flat-file" as applied to sqlite

2006-09-25 Thread Dennis Cote
will be flatter than those on the inner cylinders, but they are still definitely curved. ;-) Of course, this doesn't apply to files stored in flash memory. Those files are really very "flat" unless you have an electron microscope to look at the

Re: [sqlite] Citing Triggers As Constraints

2006-09-22 Thread Dennis Cote
, not by naming the trigger in the table's create statement. create table component(comp_id integer primary key, comp_cat text, comp_name text); create trigger fki_comp after insert on component begin ... end; create trigger fku_comp after update on component begin ... end; HTH Dennis Cote

Re: [sqlite] Re: sqlite3_get_table and non-strings

2006-09-22 Thread Dennis Cote
that want to store data using other types should use the new sqlite_prepare/sqlite_bind_*/sqlite_step/slite_column_*/sqlite_finalize APIs. It is much easier than trying to undo the string conversions that sqlite does using the old APIs. HTH Dennis Cote

Re: [sqlite] Performance question

2006-09-22 Thread Dennis Cote
ue. Note that standard SQL does not reorder the limits in the between clause if they are given in reverse order (even though it could). Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Bind

2006-09-21 Thread Dennis Cote
ut the first parameter's value is changed. The third parameter was never bound with a value, so NULL is inserted in both rows. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Bind

2006-09-21 Thread Dennis Cote
). HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Re: speeding SQLite on a cross-join over two tables

2006-09-20 Thread Dennis Cote
value returned by the subquery that is getting data from the view. Given these errors, I don't think you tested the statements you posted. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] sqlite_exec query string maximum length?

2006-09-18 Thread Dennis Cote
with "begin transaction" and "end transaction" commands. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Index Optimisation

2006-09-18 Thread Dennis Cote
a table listing the tables and indexes that will be used to implement your query. HTH Dennis Cote - To unsubscribe, send email to [EMAIL PROTECTED] -

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