Re: [sqlite] Problem with SQLite Pecl extension for PHP4

2007-05-09 Thread Chris Peachment
There was a change of file structure with version 3.x.x and this is described in the documentation under Version 3 Overview. You are attempting to use Sqlite3 on a version 2.8.x database and the formats are not compatible. On Wed, 9 May 2007 19:42:06 -0400, Brandon Eley wrote: >I've gone

Re: [sqlite] Problem with SQLite Pecl extension for PHP4

2007-05-10 Thread Chris Peachment
sqlite3 against the database without issue, it appears that the version embedded in PHP is the problem. Chris Peachment -- On Thu, 10 May 2007 08:46:30 -0400, Brandon Eley wrote: >Thank you for this information. How would I access the 2.8.x database >from within PHP? is i

RE: [sqlite] Re: Order of result of a query?

2007-05-15 Thread Chris Peachment
Why not include another column that specifies the precise display sequence that you need and use ORDER BY on it? On Tue, 15 May 2007 19:44:44 +0530, B V, Phanisekhar wrote: >>> Will the result of the above query be (1, 6, 5, 2) or (1, 2, 5, 6)? >Actually I was getting the result (1, 2, 5, 6),

Re: [sqlite] UI question

2007-08-02 Thread Chris Peachment
On Thu, 02 Aug 2007 08:21:30 -0600, Scott Derrick wrote: >This is probably a stupid question but has frustrated me a couple of times. >When using the command line interface sqlite3, a couple of times I have >forgotten to use the "." before a command. After that I get a "...>" >prompt that I

Re: [sqlite] UI question

2007-08-02 Thread Chris Peachment
On Thu, 2 Aug 2007 14:16:28 -0700 (PDT), Joe Wilson wrote: >--- John Stanton <[EMAIL PROTECTED]> wrote: >> Sqlite3 will get into a tangle with certain sequences where it does not >> accept a semicolon as a terminator or obey a CTL c. >To reproduce: >1. build sqlite3 without readline support.

Re: [sqlite] Making SQL queries with date conditions?

2007-08-19 Thread Chris Peachment
Use the ISO date format mmdd or -mm-dd and your sort and search problems disappear. On Sun, 19 Aug 2007 12:16:41 +0200, Daniel Cohen Gindi wrote: >Hi guys! > >Is there any way to make SQL queries, with the WHERE clause containing >dates? I mean [WHERE col > 05/12/2007] or such? >It

RE: [sqlite] Making SQL queries with date conditions?

2007-08-19 Thread Chris Peachment
with just text -mm-dd, >But what about BETWEEN or > >Thanks >Daniel > >-Original Message- >From: Chris Peachment [mailto:[EMAIL PROTECTED] >Sent: Sunday, August 19, 2007 12:19 PM >To: sqlite-users@sqlite.org >Subject: Re: [sqlite] Making SQL

[sqlite] Update Columns in One Table Using Values From Another Table

2007-08-23 Thread Chris Peachment
for use with PHP and a web-browser since the server kills the process after 30 seconds. Can anyone help? Chris Peachment - To unsubscribe, send email to [EMAIL PROTECTED] -

Re: [sqlite] Update Columns in One Table Using Values From Another Table

2007-08-23 Thread Chris Peachment
On Thu, 23 Aug 2007 08:52:40 -0700, Gerry Snyder wrote: >Chris Peachment wrote: >> I have a database with more than 200,000 records in the >> core table. An update table of similar record count contains >> a proper subset of the core table columns. >> >> I'm loo

Re: [sqlite] Update Columns in One Table Using Values From Another Table

2007-08-23 Thread Chris Peachment
On Thu, 23 Aug 2007 18:58:32 +0200, Kees Nuyt wrote: >Hi Chris, >On Thu, 23 Aug 2007 12:14:51 -0400, you wrote: >>On Thu, 23 Aug 2007 08:52:40 -0700, Gerry Snyder wrote: >> >>>Chris Peachment wrote: >>>> I have a database with more than 200,000 records

Re: [sqlite] Spatial searches

2007-08-23 Thread Chris Peachment
On Thu, 23 Aug 2007 10:03:00 -0700, David Thieme wrote: >I've been looking for a WinCE embedded database that supports spatial >searches. We are already using SQLite for a very small application; we're >hoping that someone may have some tricks/hints on how to implement fast >searches on spatial

Re: [sqlite] quickstart

2007-11-29 Thread Chris Peachment
Here is a small code sample. Open the database and then: Result = sqlite3_prepare_v2(hdb, "select Name, FilePrefix from Application", 100, , 0); if (Result != SQLITE_OK) { fprintf(stderr, "cannot select from Application table. Error Code: %d\n", Result); exit(1); }

Re: [sqlite] What is the preferred way to create SQLite databases?

2007-11-29 Thread Chris Peachment
At the command line prompt: sqlite3 name_of_database_to_be_created SQLite version 3.5.2 Enter ".help" for instructions sqlite>.read database_definition_text_file_name sqlite>.quit On Thu, 2007-11-29 at 15:43 -0600, Mark Brown wrote: > Hi- > > What is the preferred way to create SQLite

Re: [sqlite] [Linux + PHP] Recommended way to access SQLite?

2007-12-10 Thread Chris Peachment
According to the php info() function, on Ubuntu, PHP Version 5.2.3-1ubuntu6.2 was released on 3 December 2007 and includes the PDO sqlite driver for sqlite version 3.5.2. It also includes the extension library sqlite driver for version 2.8.17 so you have your choice there. Personally, I use PDO

Re: [sqlite] Trying to use SQLite3 with PHP5....

2008-01-04 Thread Chris Peachment
Ubuntu version 7.10 has available PHP version 5.2.3-1ubuntu6.2 that includes Sqlite3 version 3.5.2 accessible with both PDO and sqlite libraries. Personally, I prefer to use PDO because a single line change in the PHP code when declaring the database name to the PDO new() function

Re: [sqlite] Propose minor incompatible API change

2011-01-10 Thread Chris Peachment
On Mon, 2011-01-10 at 19:54 -0500, Richard Hipp wrote: > This is, technically, a compatibility break. On the other hand, there > appear to be vast numbers of smartphone applications that currently depend > on undefined behavior and will suddenly stop working if we don't make this > change. >

Re: [sqlite] rowid increment

2008-10-29 Thread Chris Peachment
Use an autoincrement field in the table instead. On Wed, 2008-10-29 at 09:46 -0700, Shaun R. wrote: > The rowid looks to reuse numbers when a row is deleted, how can i stop this? > > For example, i insert 3 rows, then i delete row 2, when entering a new row > after that the rowid is 2 rather

Re: [sqlite] Schema design and/or SELECT construction

2009-06-03 Thread Chris Peachment
What's wrong with a properly normalised schema like this: create table main (id, name,...); create table keyword (id, label); create table crossref (id_main, id_keyword); The concept of core and other keywords is a bit arbitrary. What is important (i.e. core) today might not be so tomorrow.

Re: [sqlite] sqlite versus MySQL automatic defragmentation on SSDs?

2012-10-30 Thread Chris Peachment
On Wed, 2012-10-31 at 00:49 +0700, David Barrett wrote: > Thanks Alek! Yes, we're definitely planning on it, just trying to > find the right time. We don't want to go through the work to open > source it only to be greeted with silence. Might you be interested in > using it in an actual

Re: [sqlite] sqlite versus MySQL automatic defragmentation on SSDs?

2012-10-31 Thread Chris Peachment
If it's a master, > it organizes the two-phase distributed commit. If it's a slave, it > escalates to the master. And if it's something else, then it just holds on > to the request and waits until it's either a slave or a master. > > -david > > > On Wed, Oct 31, 2012 a

[sqlite] links in markdown syntax - local repo vs remote repo

2013-01-15 Thread Chris Peachment
to overcome this problem, or am I detecting a weakness in the markdown interface for Fossil? Thanks, Chris Peachment ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] links in markdown syntax - local repo vs remote repo (edited)

2013-01-15 Thread Chris Peachment
. Is there any configuration change I can make to overcome this problem, or am I detecting a weakness in the markdown interface for Fossil? Thanks, Chris Peachment ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman

Re: [sqlite] I'm sure I'm missing something.

2012-01-29 Thread Chris Peachment
I don't usually do other people's homework but it's Sunday night so why not be generous? At the terminal command line type: sqlite3 motorcycles.db At the resulting sqlite3 command line type: create table motorcycles ( model text; description text ); insert into motorcycles values

Re: [sqlite] I'm sure I'm missing something.

2012-01-29 Thread Chris Peachment
The select statement needs an 's' on 'motorcycle' to match the table definition. Or you can remove the 's' in the create statement. On Sun, 2012-01-29 at 20:03 -0400, Chris Peachment wrote: > SqlText = "select description from motorcycle " > " wh

Re: [sqlite] Question limit use for me of sqlite, I need help, please, Marcelo Paiva, Brasil

2012-05-23 Thread Chris Peachment
Here are the steps you must take: 1. Understand that sqlite3 does not have a DATE type, only text. It does have functions that can work with text strings to be treated as dates, for example strftime(). 2. Convert all your dates in the database and in your programmes to use a text format

Re: [sqlite] Unable to create index on attached database

2017-06-12 Thread Chris Peachment
ex in t2, it will figure out that the table needs to > be in t2 too. > > -Ursprüngliche Nachricht- > Von: sqlite-users > [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im Auftrag von > Chris Peachment Gesendet: Sonntag, 11. Juni 2017 17:22 An: SQLite > maili

[sqlite] Unable to create index on attached database

2017-06-12 Thread Chris Peachment
ror sqlite> create index idx on link (idChild,idParent); Error: no such table: main.link sqlite> Regards, Chris Peachment ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Deterministic random sampling via SELECT

2019-11-07 Thread Chris Peachment
In the very old days before computers were common, a random number table appeared at the back of many statistical texts. This was used to select a series of random numbers which would then be used as look-up indices into some other data set. You could do the same: 1. generate a list of