Re: [sqlite] Does SQLite have a fulltext search like MySQL?

2005-07-05 Thread Jim Dodgen
look at the glob command it works like like except uses the unix file name globbing style of matching not quite a grep select * from table where a glob '[abc]foobar*'; At 06:47 PM 7/5/2005, you wrote: like this? select * from table where a like '%abc%'; SQLite also makes it easy to write

Re: [sqlite] Does SQLite have a fulltext search like MySQL?

2005-07-05 Thread Roger Binns
like this? select * from table where a like '%abc%'; SQLite also makes it easy to write your own functions. That way you can define other matching algorithms (eg Jaro-Winkler). Roger

Re: [sqlite] Does SQLite have a fulltext search like MySQL?

2005-07-05 Thread Kurt Welgehausen
> From: Stephen Leaf <[EMAIL PROTECTED]> > Organization: SMiLeaf > To: sqlite-users@sqlite.org > Date: Tue, 5 Jul 2005 18:06:39 -0500 > Subject: Re: [sqlite] Does SQLite have a fulltext search like MySQL? > > On Tuesday 05 July 2005 04:48 pm, Michael Grice wrote: > > If not, are there plans to add

Re: [sqlite] Does SQLite have a fulltext search like MySQL?

2005-07-05 Thread Stephen Leaf
On Tuesday 05 July 2005 04:48 pm, Michael Grice wrote: > If not, are there plans to add this? > > I'm just a NOOB, looking to see what all SQLite can do for me, before > I go too far down this road. > > Thx. like this? select * from table where a like '%abc%';

Re: [sqlite] Search question

2005-07-05 Thread Stephen Leaf
On Tuesday 05 July 2005 05:31 pm, Tom Shaw wrote: > Is there an easy way to perform a search on VARCHAR/CHAR/TEXT column > for those entries that has strings that are longer than x without > writing my own comparitor? I am using SQLite in a PHP environment, I > am looking for an intrinsic function

[sqlite] Search question

2005-07-05 Thread Tom Shaw
Is there an easy way to perform a search on VARCHAR/CHAR/TEXT column for those entries that has strings that are longer than x without writing my own comparitor? I am using SQLite in a PHP environment, I am looking for an intrinsic function that would run natively rather than a interpretive

[sqlite] Does SQLite have a fulltext search like MySQL?

2005-07-05 Thread Michael Grice
If not, are there plans to add this? I'm just a NOOB, looking to see what all SQLite can do for me, before I go too far down this road. Thx.

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread Stephen Leaf
On Tuesday 05 July 2005 01:23 pm, jack wu wrote: > one more question if i may. what should i do if i 'd > like to have two columns, one for Date, one for Time > of the day. most of the times, i 'd like to query by > Date only but i want to display date and time at the > same time. is

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread jack wu
one more question if i may. what should i do if i 'd like to have two columns, one for Date, one for Time of the day. most of the times, i 'd like to query by Date only but i want to display date and time at the same time. is julianday('2005-07-01') going to store any time information? Thanks.

Re: [sqlite] how to use the LIMIT and OFFSET?

2005-07-05 Thread Eric Scouten
jack wu wrote: i am trying to run some web search like query. the one that returns a total number of results and only presents the first 20, then allows user to click on next to go to the next 20 etc. has anyone done this before? i suppose i would use LIMIT or OFFSET in the select statement,

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread Stephen Leaf
On Tuesday 05 July 2005 09:53 am, Cory Nelson wrote: > Just an educated guess, but probably because sqlite tries to be as > minimal as possible. Which I have no complaints with, as comparing a > double will likely be faster than comparing a string. I personally store all mine like this anyway

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread Cory Nelson
Just an educated guess, but probably because sqlite tries to be as minimal as possible. Which I have no complaints with, as comparing a double will likely be faster than comparing a string. On 7/5/05, Johan Danielsson <[EMAIL PROTECTED]> wrote: > Cory Nelson <[EMAIL PROTECTED]> writes: > > >

[sqlite] Syntax Help

2005-07-05 Thread Ray Mosley
AS a DB rookie, I have replaced the .txt files in an Tcl/Tk application with a SQLite database, so it still reads very much like file I/O. While in a loop I wrote several records to my files, so now I simply do an INSERT. I keep reading that you optimize performance by using transactions, so

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread Johan Danielsson
Cory Nelson <[EMAIL PROTECTED]> writes: > create table t_foo(bar real); > insert into t_foo values(julianday('2005-07-01')); Is there any advantage to this compared to storing dates as strings in (for instance) ISO8601 format? /Johan

Re: [sqlite] how to do select by Date and Time range?

2005-07-05 Thread Cory Nelson
create table t_foo(bar real); insert into t_foo values(julianday('2005-07-01')); On 7/4/05, jack wu <[EMAIL PROTECTED]> wrote: > Cory, thanks for the information. the wiki talks about > time functions. what should we do when defining the > table columns? should i just use REAL? can you give a >

Re: [sqlite] What happens to unused space?

2005-07-05 Thread Dirk Theisen
Hi! If I do this*, is anyone else interested in it? Obviously it would be a compile time option, as it would probably impact performance (but not to a level that matters for my application). I think a persistent pragma would be more appropriate, don't you think? Greetings, Dirk

Re: [sqlite] Another SQLite documentation/manual

2005-07-05 Thread Firman Wandayandi
On 7/5/05, Roger Binns <[EMAIL PROTECTED]> wrote: > > Anything about sqlite_master table information I guess, or maybe I missed > > it? > > http://www.sqlite.org/faq.html#q9 > Ok, I missed the faqs. Thanks. > I prefer using the pragmas: > > http://www.sqlite.org/pragma.html#schema > > Roger

Re: [sqlite] Another SQLite documentation/manual

2005-07-05 Thread Roger Binns
Anything about sqlite_master table information I guess, or maybe I missed it? http://www.sqlite.org/faq.html#q9 I prefer using the pragmas: http://www.sqlite.org/pragma.html#schema Roger