Re: [sqlite] querying with BLOB in WHERE clause, possible?

2014-11-14 Thread Kees Nuyt
; sqlite> INSERT INTO T VALUES (2,x'323232'); sqlite> UPDATE T SET bl=x'33' WHERE bl=x'323232'; sqlite> SELECT * FROM t; 1|111 2|333 sqlite> DELETE FROM t WHERE bl=x'313131'; sqlite> SELECT * FROM t; 2|333 sqlite> >Thank you, >J

Re: [sqlite] Access Temp Tables/Views in background thread

2014-10-28 Thread Kees Nuyt
ch queue. Are you sure the temp objects are accessed via the same connection (db object) as where they were created? > Is there a better multi-threaded approach? I'll leave that to someone more experienced in threading. -- Regards, Kees Nuyt _

Re: [sqlite] Remove me from this

2014-10-26 Thread Kees Nuyt
On Mon, 27 Oct 2014 07:20:04 +1100, Isaac Faulkner wrote: > > >I did not sign up for this someone hacked my email stop spamming me please Visit the link below, make it send your password, then login and unsubscribe. Regards,

Re: [sqlite] Granularity of Locks in sqlite

2014-10-17 Thread Kees Nuyt
don't (have to) care about concurrency at all, so the concurrency that SQLite supports is a lot already. There are enough other products available that target that market. > Thanks a lot. You're welcome. -- Regards, Kees Nuyt ___ sqlite-users ma

Re: [sqlite] Performance issue when copying data from one sqlite database to another

2014-10-14 Thread Kees Nuyt
On Wed, 15 Oct 2014 01:26:10 +0200, Kees Nuyt wrote: > http://knuyt.demon.nl/sqlite.org/faq.html#q19 Oops, make that http://www.sqlite.org/faq.html#q19 ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mail

Re: [sqlite] Performance issue when copying data from one sqlite database to another

2014-10-14 Thread Kees Nuyt
the performance of sqlite3 > in this scenario? I suspect this is a case of http://knuyt.demon.nl/sqlite.org/faq.html#q19 -- Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] In python, determine database status

2014-10-08 Thread Kees Nuyt
unctions a totally separate program (which would be, I > think, a poor > way to do this). It might help if there were wsome way to determine the > database status in > some way which could tell me what state it's in (open for viewing, locked, > unlocked, etc). > > Ca

Re: [sqlite] passing error messages to pysqlite

2014-10-07 Thread Kees Nuyt
data c.execute("""insert into stocks values ('2006-01-05','BUY','RHAT',100,35.14)""") https://pysqlite.readthedocs.org/en/latest/sqlite3.html No idea whether that solves your problem. -- Regards, Kees Nuyt

Re: [sqlite] Filling struct Select in sqlite

2014-10-06 Thread Kees Nuyt
qlite3_step(), and finally sqlite3_reset() to use the same compiled statement again and again. That way, there is no need to _finalize() and _prepare() every time, and you may not need that optimization at all. -- Groet, Kees Nuyt ___ sqlite-users mailing

Re: [sqlite] Vdbe Program Generation

2014-10-03 Thread Kees Nuyt
On Fri, 3 Oct 2014 18:39:29 +0530, Prakash Premkumar wrote: > Can you please tell me which function is > sqlite actually generates the Vdbe > program for a give sql string ? http://www.sqlite.org/c3ref/prepare.html -- Groet, Kees Nuyt _

Re: [sqlite] sqlite max arguments assistance

2014-09-22 Thread Kees Nuyt
o post export from the other database to change the > values correctly? Have a look at http://sqlite.org/datatype3.html "2.3 Column Affinity Behavior Example" -- Groet, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] BUG: Aggregate functions in subqueries

2014-09-14 Thread Kees Nuyt
t1 (x,y) VALUES (2,5); SELECT * FROM t1; 1 1 2 2 3 3 3 4 2 5 SELECT max(x), y FROM t1; 3 3 SELECT y FROM (SELECT max(x), y FROM t1); 5 SELECT m, y FROM (SELECT max(x) as m, y FROM t1); 3 3 SELECT y FROM t1 WHERE x=(SELECT m

Re: [sqlite] sqlite db is locked on network drive

2014-09-12 Thread Kees Nuyt
On Sat, 13 Sep 2014 00:55:23 +0200, Kees Nuyt wrote: > It works better on your local filesystem. Perhaps you can configure (a partition on) the Seagate GoFlex as an iSCSI target and configure an iSCSI initiator on the PC ? A quick websearch on "seagate goflex iscsi" suggests that&#

Re: [sqlite] sqlite db is locked on network drive

2014-09-12 Thread Kees Nuyt
n to be buggy or even unimplemented on many NFS implementations (including recent versions of Mac OS X) and that there are reports of locking problems for network filesystems under Windows. Your best defense is to not use SQLite for files on a network filesystem. " It works better on your local filesystem. -- Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Reinstalling My Build Environment

2014-09-12 Thread Kees Nuyt
On Fri, 12 Sep 2014 23:23:39 +0100, Simon Slavin wrote: > >On 12 Sep 2014, at 10:33pm, Kees Nuyt wrote: > >> Sure, it's all available at >> https://system.data.sqlite.org/ >> >> I think the material there covers most of the questions. > >So the

Re: [sqlite] write internal blob vs external file

2014-09-12 Thread Kees Nuyt
unity: printf "PRAGMA page_size=bytes; VACUUM;\n" \ | sqlite3 benchmark.sqlar >Eric > >References: > >http://sqlite.1065341.n5.nabble.com/Internal-v-External-BLOBs-td15515.html >http://www.sqlite.org/intern-v-extern-blob.html -- Groet, Kees Nuyt _

Re: [sqlite] Reinstalling My Build Environment

2014-09-12 Thread Kees Nuyt
a pointer to that document as a first approximation to an > answer, whether they understand the question or not. > > If such document already exists, could someone post a pointer ? Sure, it's all available at https://system.data.sqlite.org/ I think the material there covers most of the questions. -- Groet, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] presentation about ordering and atomicity of filesystems

2014-09-11 Thread Kees Nuyt
On Thu, 11 Sep 2014 23:49:22 +0200, Kees Nuyt wrote: > Today I bumped into a presentation about ordering and atomicity > of filesystems that might interest you. > > https://www.youtube.com/watch?v=YvchhB1-Aws Compliments for sqlite at 43

[sqlite] presentation about ordering and atomicity of filesystems

2014-09-11 Thread Kees Nuyt
dison Talk at usenix 2014 Published on Sep 4, 2014 by USENIX Association Videos Somewhat related to the article drh recently wrote about using sqlite as an application data store. -- Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlit

Re: [sqlite] After ANALYZE all has become slow

2014-08-08 Thread Kees Nuyt
On Fri, 8 Aug 2014 11:14:29 +0200, Giuseppe Costanzi wrote: >>>> sqlite3.sqlite_version >'3.5.9' Version 3.5.9 is more than 6 years old. A lot of optimizations were introduced since that version. Please upgrade and try agai

Re: [sqlite] sqlite3 has stopped working

2014-07-28 Thread Kees Nuyt
rogramming error or some form of memory (heap) corruption. Try to run the program with a debugger to pinpoint the error. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Creating fiels

2014-07-18 Thread Kees Nuyt
Miguel Fernandes -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Setting boundaries in a search

2014-07-17 Thread Kees Nuyt
On Thu, 17 Jul 2014 13:06:36 +0530, Sky Meena wrote: > how to set a password to open a sqlite db in sqlite browser Answered in a different thread 2 minutes ago. -- Regards, Kees Nuyt >On Thu, Jul 17, 2014 at 7:18 AM, RSmith wrote: > >> >> On 2014/07/16 14:

Re: [sqlite] sqlite db transfer

2014-07-17 Thread Kees Nuyt
e able to open an encrypted SQLite database. Hope this helps -- Regards, Kees Nuyt >On Fri, May 9, 2014 at 6:05 PM, Simon Slavin wrote: > >> >> On 9 May 2014, at 1:23pm, Sky Meena wrote: >> >> > i working in server client... c program. i need to transfer db fr

Re: [sqlite] capturing and testing a hot journal

2014-07-14 Thread Kees Nuyt
On Mon, 14 Jul 2014 12:09:46 +0100, Simon Slavin wrote: > On 14 Jul 2014, at 11:19am, Kees Nuyt wrote: > > > On Sun, 13 Jul 2014 18:00:59 +0100, Simon Slavin > > wrote: > > > >> I had to explain to some users that a database > >> change

Re: [sqlite] Brief intro to SQLite in Python

2014-07-14 Thread Kees Nuyt
; .execute(). His follow-up article is nice too: <http://sebastianraschka.com/Articles/2014_sqlite_in_python_tutorial.html> -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sq

Re: [sqlite] capturing and testing a hot journal

2014-07-14 Thread Kees Nuyt
irectory in an atomic fashion, which would be necessary to maintain consistency for sqlite or any other software that works on time-coordinated sets of files. In my opinion dropbox should not be used on directories with SQLite databases at all. It would be better to only allow dropbox access to

Re: [sqlite] Hello, I would like to know the difference between sqlite2 and sqlite3!

2014-07-13 Thread Kees Nuyt
ses to sqlite3. sqlite3 is current and actively maintained / optimized. Differences (as perceived almost 10 years ago): http://www.sqlite.org/version3.html Release history: http://www.sqlite.org/changes.html Hope this helps. -- Regards, Kees Nuyt ___

Re: [sqlite] Hello, I would like to know the difference between sqlite2 and sqlite3!

2014-07-13 Thread Kees Nuyt
3 is current and actively maintained / optimized. Differences (as perceived almost 10 years ago): http://knuyt.demon.nl/sqlite.org/version3.html Release history: http://knuyt.demon.nl/sqlite.org/changes.html Hope this helps. -- Regards, Kees Nuyt

Re: [sqlite] Bug? sqlite3_column_name returns name of PK for rowid

2014-07-04 Thread Kees Nuyt
will be hidden, yet accessible. Without INTEGER PRIMARY KEY, the ROWID is still there, but it is hidden. Check it with PRAGMA table_info(test); You will see the id column, never a ROWID column. I think this behaviour is consistent with http://sqlite.org/lang_createtable

Re: [sqlite] Problem with many connections

2014-07-03 Thread Kees Nuyt
, it seems to be > very confusing behaviour. Perhaps http://www.sqlite.org/c3ref/next_stmt.html is useful here. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Porting SQLite to Nurit OS ver

2014-07-02 Thread Kees Nuyt
your posts ? Make sure we can see both the full > error text and which line of code it's complaining about. The error report was included, you just have to scroll down a bit more. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___

Re: [sqlite] Simple Select from IN - from a newbie.

2014-05-25 Thread Kees Nuyt
VALUES (1,3,4,0),(2,3,5,1),(3,7,4,1),(4,7,5,0); or even: REPLACE INTO TeamPersonTable (tpId,teamId,personId,orderId) VALUES (1,3,4,0),(2,3,5,1),(3,7,4,1),(4,7,5,0); http://www.sqlite.org/lang_insert.html -- Groet, Cordialement, Pozdrawiam, Regards, Kee

Re: [sqlite] Simple Select from IN - from a newbie.

2014-05-24 Thread Kees Nuyt
ERE cluase determines which rows are updated. >Cheers. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Suggestion for shell .IMPORT improvement

2014-05-22 Thread Kees Nuyt
e.org/sar/doc/trunk/README.md -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] duplicate row in sqlite3 database

2014-05-08 Thread Kees Nuyt
LICT clause: http://sqlite.org/lang_conflict.html -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] foreign keys

2014-04-25 Thread Kees Nuyt
gt; insert into U values(4) > > and it works but i don't want to, because the value 4 is not in T. > I've tried PRAGMA foreign_keys first, but it's the same. Old version perhaps? -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt

Re: [sqlite] BLOBs and NULLs

2014-04-21 Thread Kees Nuyt
emselves, they take hardly any storage at all, ust the type indicator that every every row has for every column. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-b

Re: [sqlite] printf function is shown in docs but not found when I try it

2014-04-19 Thread Kees Nuyt
ble within SQL >queries? PDO used to have a variant pdo_sqlite3_external (or similar name), which linked dynamically to a standard sqlite3 library, but that wasn't supported on all platforms (don't remember which though). It was a great solution, because you could upgrade sqlite3 ind

Re: [sqlite] sqlite3_analyzer source code

2014-04-15 Thread Kees Nuyt
ssil repository, http://www.sqlite.org/cgi/src/doc/trunk/README.md The Makefile will tell you what sqlite3_analyzer is made of. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.o

Re: [sqlite] Is there a way to load a blob from the shell?

2014-04-07 Thread Kees Nuyt
s users may want to add: CC += -D_XOPEN_SOURCE=500 -O2 to the Makefile. For completeness, I also added target: clean: -rm sar sqlite3.o -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-us

Re: [sqlite] Use of AUTOINCREMENT

2014-03-28 Thread Kees Nuyt
n't worry about it unless you are in a very fast real-time environment. Premature optimization is the root of all evil. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Date in gridview visualized in YYYY-MM-DD format:

2014-03-20 Thread Kees Nuyt
the date formatting functions in your select statement to change the presentation. http://sqlite.org/lang_datefunc.html -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] very slow fdsync() calls

2014-03-20 Thread Kees Nuyt
drawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Problem with sqlite3_exec

2014-03-15 Thread Kees Nuyt
transaction. BEGIN; DELETE FROM table1 WHERE ...; DELETE FROM table2 WHERE ...; COMMIT; -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Windows user app to display input form + reporting?

2014-03-12 Thread Kees Nuyt
t; http://sqlitestudio.pl > http://www.valentina-db.com > http://www.navicat.com/products/navicat-for-sqlite Not what you asked for, but LibreOffice Base can use SQLite via ODBC: http://ch-werner.de/sqliteodbc/ I have no experience with that solution, but at least the package is maintained and

[sqlite] SQL quine using with

2014-03-08 Thread Kees Nuyt
7;')) from q; [2014-03-08 11:02:52] < zzo38> Do you like quine program in SQL? [2014-03-08 11:03:06] < zzo38> Maybe do you have a better (shorter) one? Note: SQL preferably written as a oneliner References: http://en.wikipedia.org/wiki/Quine_(computing)

Re: [sqlite] sqLlite default value setting

2014-03-06 Thread Kees Nuyt
to the developer of "sqlLite administrator", apparently this public beta is not fit for general availability. HTH -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] New

2014-02-28 Thread Kees Nuyt
to read and understand the files I would > greatly appreciate it >I think the file ext. is a plist. >Live, love & laugh. > -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Delete From Not Working Properly

2014-02-21 Thread Kees Nuyt
veryone that >has attempted to figure this out has been stumped. I am using Microsoft >Visual Studio 2012 and C++. Which version of MS Windows? What is the path to the database file? Is the database perhaps stored in a "protected" directory? Any errors on execution of the BEGIN and

Re: [sqlite] Question about how sqlite recovers after a power loss

2014-02-15 Thread Kees Nuyt
replayed and deleted. > > Is my understanding correct? Yes. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Bug in SQLite 3.8.2

2014-02-12 Thread Kees Nuyt
literal but an identifier, just like table names and column names.) -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] help needed for major SQLite problem

2014-02-10 Thread Kees Nuyt
On Mon, 10 Feb 2014 14:18:18 -0500, C M wrote: >On Sat, Feb 8, 2014 at 4:28 AM, Kees Nuyt wrote: >> >> On Sat, 08 Feb 2014 12:06:01 +0700, Dan Kennedy >> wrote: > > > >> >> SQLITE_LOG: delayed 1375ms for lock/sharing conflict (10) SQLITE_IOERR

Re: [sqlite] help needed for major SQLite problem

2014-02-08 Thread Kees Nuyt
tter idea of what could be happening and how I >> can fix this problem? > >Looks like GetFileAttributesEx() might be throwing an ERROR_ACCESS_DENIED >exception. Maybe a virus scanner or some other background process had >temporarily locked the database file. > >Dan. I agree, and

Re: [sqlite] Transaction behaviour

2014-01-23 Thread Kees Nuyt
/get_autocommit.html can help you decide what mode you are in. By the way, autocommit is not the best thing to do if you have related insert/update/delete statements in an application transaction. Related updates should be in the same, atomic,

Re: [sqlite] Simple data conversion in SQLite - please help

2014-01-22 Thread Kees Nuyt
ll you. I hope this helps. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] How to build sqlite3 on [Open]Solaris

2014-01-16 Thread Kees Nuyt
figure \ && make \ && mv -f fossil ${HOME}/usr/bin/fossil \ && make clean \ && cd set +xv } On Solaris, I complie trunk every now and then, on MS Windows, I run the released executables. I'll try the same on XStreamOS

Re: [sqlite] select only records with fields that BEGIN with a certain sub-string

2013-12-26 Thread Kees Nuyt
iam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Bug: PRAGMA busy_timeout outputs the value, screws up html

2013-12-25 Thread Kees Nuyt
e is an easy workaround (oneliner wrapped by mail) : printf ".output stderr\nPRAGMA busy_timeout =1000;\n.output stdout\ncreate table foo as select 1 as c;select * from foo;" |sqlite3 2>/dev/null -html -header :memory: yields: c 1 -- Groet, Cordialement, Pozdrawiam, Regards, Kees

Re: [sqlite] An "unable to open database file" error that has nothing to do with opening database file

2013-12-15 Thread Kees Nuyt
advanced / etc.) Remark: Do you know that concurrent access to sqlite files on network shared filesystems is not safe? -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:808

Re: [sqlite] sqlite download for 64 bit

2013-12-09 Thread Kees Nuyt
t and 64-bit Windows OS. Only for very large databases you may need SQLite compiled for 64 bit. Typically, that is not something a newbie would do. >Regards >Krishna -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users m

Re: [sqlite] SQLite ver: 1.0.89 issue

2013-12-02 Thread Kees Nuyt
t better/quicker/more answers if you also post: - a minimal set of sample data that can demonstrate the problem - expected result - obtained result -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@s

Re: [sqlite] Inefficient query plan in queries with multiple joins

2013-11-30 Thread Kees Nuyt
ermediate result set. For faster pagination, read : http://sqlite.org/cvstrac/wiki?p=ScrollingCursor -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Insert with multiple nested selects.

2013-11-24 Thread Kees Nuyt
c WHERE name=?); > >Anyone have a hint on how to perform such as query? Perhaps: INSERT OR IGNORE INTO table_a ( col_a, col_b, col_c, col_d ) VALUES ( (SELECT id FROM table_b WHERE name=?) ,? ,? ,(SELECT id FROM table_c WHERE name=?) ); >Tha

Re: [sqlite] SQlite3 Query Format for Export

2013-11-19 Thread Kees Nuyt
27;"}' FROM . I use .mode line sometimes, which is easy to postprocess, or .mode list with .separator '\001', if the data is suitable. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] query optimization

2013-11-18 Thread Kees Nuyt
issed part of the spec. I'm sure the OP will sort it out after so many hints :) >On 2013/11/18 13:55, Kees Nuyt wrote: >> On Mon, 18 Nov 2013 13:04:31 +0200, RSmith wrote: >> >>> Oops, misprint... >>> >>> name won't be null of course, the par

Re: [sqlite] query optimization

2013-11-18 Thread Kees Nuyt
uery. if key and name available, execute 2nd >>> query. >>> >>> Is it possible to write in single query? >>> >>> Regards, >>> va >>> ___ >>> sqlite-users mailing list >>> sqlite-users@

Re: [sqlite] SQLite server/file-locking scenario

2013-11-17 Thread Kees Nuyt
ng the risk of reading some of it before a change and some of it after >> the change. So yes, you need some form of mutex. Or to use the SQLite >> backup API to read the file. Or to use the normal SQLite API to open the >> file read/only and read all the data. >> >> Simon. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQL 2003 in sqlite

2013-11-17 Thread Kees Nuyt
On Sat, 16 Nov 2013 23:59:35 +0100, Petite Abeille wrote: > >On Nov 16, 2013, at 11:02 PM, Kees Nuyt wrote: > >> For the application, the merge would look like a single >> INSERT INTO merge_t statement. > >H…. clever lateral thinking, but I doubt this will fly

Re: [sqlite] SQL 2003 in sqlite

2013-11-16 Thread Kees Nuyt
he SQL could probably be generated by a smart m4 macro. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Ghost index?

2013-11-12 Thread Kees Nuyt
S 'index1'; ? Doing so still shows the index when I load the >database in SQLite Administrator. What operating system are we talking about? What is the exact full path to the database file? -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___

Re: [sqlite] Ghost index?

2013-11-12 Thread Kees Nuyt
oet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Is this a proper syntax?

2013-10-25 Thread Kees Nuyt
ond run was optimized out. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] sqlite database created in PHP not readable in python becomes how do i download the correct version of the python sqlite API

2013-09-26 Thread Kees Nuyt
URL. You can build it yourself by checking out the correct version of the fossil repositories (links at the bottom of the http://sqlite.org/download.html page). Hope this helps. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] multiple connection to the same DB

2013-09-22 Thread Kees Nuyt
w are the computers you are using accessing the same file ?  Are you using >access across a network ?  If so, what network protocol are you using ? > >Simon. >___ >sqlite-users mailing list >sqlite-users@sqlite.org >http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] A graphical tool to handle sqlite schema change(more than ALTER TABLE)

2013-09-19 Thread Kees Nuyt
On Wed, 18 Sep 2013 20:53:31 -0700 (PDT), niubao wrote: >Thank you very much Simon, for your detailed and very clear explanation on >this. I wonder if there is some materials, a tutorial or something, that >are dedicated to SQLite schema change for beginners? > >There seems to be so many things t

Re: [sqlite] A graphical tool to handle sqlite schema change(more than ALTER TABLE)

2013-09-18 Thread Kees Nuyt
/code.google.com/p/sqlite-manager/ should meet your needs +1 -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] racing with date('now') (was: Select with dates)

2013-09-14 Thread Kees Nuyt
t should be the difference between CURRENT_TIME and datetime('now')? just my two cents... -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Insert statement

2013-09-08 Thread Kees Nuyt
ts based on >one >select from the PK generating initial insert. > >Thanks, >jlc HTH -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite port to RTOS

2013-09-04 Thread Kees Nuyt
On Wed, 4 Sep 2013 10:57:44 +0530, Pratheek Prakash wrote: > Hi Kees Nuyt, > > That was really helpful. Also I have another doubt. > Eventually I will be running sqlite integrated with other > modules in a board. That is what SQLite is made for. > As far as I have read I s

Re: [sqlite] SQLite port to RTOS

2013-09-03 Thread Kees Nuyt
he Unix VFS may serve as an example. A good starting point in the documentation is: http://sqlite.org/custombuild.html >Regards >Pratheek -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Inefficient covering index used for Subversion with SQLite 3.8.0

2013-09-02 Thread Kees Nuyt
y: there are too many >possibilities and it requires too good an understanding >of how the query planner works for non-experts. >There's no substitute for actual testing. > >Simon. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt __

Re: [sqlite] Is SQLite a DBMS?

2013-09-01 Thread Kees Nuyt
bly not > but he did not > try to seek for wikipedia sqlite in google? Yes, that probably means he is young and has not learned how to do research yet. > It is just me or it is quite weird? Weirdness is common on the internet. -- Groet, Cordialement, Pozdr

Re: [sqlite] Database locking Error

2013-08-26 Thread Kees Nuyt
e. Every connection will respect it. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Difference in pragma table_info between tables and views

2013-08-14 Thread Kees Nuyt
orting the pk-ness of a column is likely to be >intentionally not correct for views. Indeed. >Thomas -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite Input with validation and lookup

2013-08-12 Thread Kees Nuyt
ents you cannot implement using the above, you may need to create additional meta data tables. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] select prepared statement always returning SQLITE_DONE

2013-08-02 Thread Kees Nuyt
_reset() end loop 1 _finalize() But perhaps I don't understand your problem? -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Table name in attach'ed databases

2013-07-20 Thread Kees Nuyt
he identifier. attach database 'file:test.db' as test;-- OK attach database 'file:test.db' as 123test; -- not OK attach database 'file:test.db' as test123; -- OK Note: these are database names, not table names. A double quoted database identifier as in "123test&q

Re: [sqlite] SQLite3 extended API usage

2013-07-08 Thread Kees Nuyt
ce: sqlite3_get_table(). http://www.sqlite.org/c3ref/free_table.html -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] table format for most efficient query

2013-07-04 Thread Kees Nuyt
al ROWID column, saving an integer column. Also, JOIN performance on rowindex will be better as it removes one level of indirection. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Another 2 questions about SQLite

2013-07-04 Thread Kees Nuyt
n be automatic in some versions of _prepare(). In most applications the schema is quite static. my EUR 0.02 -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/m

Re: [sqlite] Getting Constraints Details

2013-07-01 Thread Kees Nuyt
-- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] anyone know how to use ta-lib api to the sqlite database?

2013-06-20 Thread Kees Nuyt
s C, not C++, but it can be called from C++. Warning: I've never done any of this myself, and I don't know what kind of API ta-lib offers. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@s

Re: [sqlite] Updating a table from itself

2013-06-09 Thread Kees Nuyt
gt;On 6/8/2013 2:51 PM, Dave Wellman wrote: >> update t1 from (select c1,c2 from t1) as dt1 set c2 = dt1.c2 where >> t1.c1 = dt1.c2 - 1; > >update t1 set c2 = coalesce((select c2 from t1 dt1 where t1.c1 = dt1.c2 >- 1), c2); -- Groet, Cordialement, Pozdrawiam, Regards, K

Re: [sqlite] sqlite abnormal IO writing

2013-04-21 Thread Kees Nuyt
http://sqlite.org/faq.html#q19 helps? -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] A sqlite database changing the contents when I change the database name or user rights

2013-04-10 Thread Kees Nuyt
kingv3.html#how_to_corrupt 3) On some versions of MS Windows, .db is a special extension, which gets a special treatment and should be avoided. Some people reported bad performance if that extension is used, which improves when replaced by something like .sqlite or .etilqs . -- Groet, Cordialement

Re: [sqlite] 64bit compatibility warnings

2013-04-08 Thread Kees Nuyt
> so that should be an easy fix. Warnings are fixed eventually ( e.g. <http://www.sqlite.org/cgi/src/info/274d2a2266> ), but with a lower priority than making sure all tests succeed.   >Alex -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt

Re: [sqlite] Performance with journal_mode = off

2013-03-27 Thread Kees Nuyt
single transaction. I miss one test case: both journal_mode = off, and all 5764 inserts within a single transaction. Give that one a thought (and a try) and you'll understand the difference. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] import TXT file

2013-02-21 Thread Kees Nuyt
ows, for example in http://unxutils.sourceforge.net/ Note: you need both UnxUtils.zip and UnxUpdates.zip >Or is there a way I can force sqlite3 to ignore these double quotes? > >thanks > >gert -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Set Mode to HTML via VBScript

2013-02-11 Thread Kees Nuyt
t;My.html Try: sqlite3 -help for more options. -- Groet, Cordialement, Pozdrawiam, Regards, Kees Nuyt ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

<    1   2   3   4   5   6   7   8   9   >