Re: [sqlite] Transaction -> OE_Ignore

2004-01-20 Thread Kennedy, Dan
> How do I set a transaction (inserting items) to ignore > doubles in keys? As the default behaviour now is to abort/rollback... Take a look at this: http://www.sqlite.org/lang.html#conflict > I've also been looking where the sqlite_vm - structure is defined, > but I did not found anything... I

RE: [sqlite] basic table level stuff

2004-01-20 Thread jim
Hi- that is a great example and I will definitely use it. However, the constraint you listed goes at the end. I am also wondering about the constraint in the column-def like column-def ::= name [type] [[CONSTRAINT name] column-constraint]* CREATE [TEMP | TEMPORARY] TABLE table-name ( column-

[sqlite] Transaction -> OE_Ignore

2004-01-20 Thread Steven Van Ingelgem
How do I set a transaction (inserting items) to ignore doubles in keys? As the default behaviour now is to abort/rollback... I've also been looking where the sqlite_vm - structure is defined, but I did not found anything... Is that normal? Or is it just a pointer to a struct with nothing inside

Re: [sqlite] basic table level stuff

2004-01-20 Thread David M. Cook
On Tue, Jan 20, 2004 at 05:15:15PM -0500, jim wrote: > if they already have these constraints at the column level, > why do they need them a second time as in ... > name [type] [[CONSTRAINT name] column-constraint]* Because you may want a composite primary key or set of unique columns. A simple

[sqlite] basic table level stuff

2004-01-20 Thread jim
Hi- One thing that is puzzling me is the contstraint below that isnt a column constraint. constraint ::=PRIMARY KEY ( name [, name]* ) [ conflict-clause ]| UNIQUE ( name [, name]* ) [ conflict-clause ] | CHECK ( expr ) [ conflict-clause ] if they already have these constraints at the column level

Re: [sqlite] Apostrophe's and Quotes

2004-01-20 Thread Derrell . Lipman
Grant Robinson <[EMAIL PROTECTED]> writes: > I've been googling for a solution to this and haven't been able to find one. > Here is my problem: > > I have a table named questions that looks like this: > id|question|answer > 1|Cat''s name|fluffy > 2|Dog''s name|buffy > > When I execute the followin

[sqlite] Apostrophe's and Quotes

2004-01-20 Thread Grant Robinson
I've been googling for a solution to this and haven't been able to find one. Here is my problem: I have a table named questions that looks like this: id|question|answer 1|Cat''s name|fluffy 2|Dog''s name|buffy When I execute the following query: select * from questions where question = 'Cat''s

RE: [sqlite] Setting sqlite-shell preferences

2004-01-20 Thread Williams, Ken
> -Original Message- > From: D. Richard Hipp [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 20, 2004 11:48 AM > To: SQLite-Users (E-mail) > Subject: Re: [sqlite] Setting sqlite-shell preferences > > It is suppose to execute commands in ~/.sqliterc prior to giving you > a prompt. Thi

Re: [sqlite] Setting sqlite-shell preferences

2004-01-20 Thread D. Richard Hipp
Williams, Ken wrote: Hi, Every time I use the sqlite shell, I'd like to be in column mode, and with headers turned on. Is there a way to autoexecute ".header on; .mode column" every time I start up? I think "sqlite -header -column" will do it, but is there any way to put this in a stored prefere

[sqlite] Setting sqlite-shell preferences

2004-01-20 Thread Williams, Ken
Hi, Every time I use the sqlite shell, I'd like to be in column mode, and with headers turned on. Is there a way to autoexecute ".header on; .mode column" every time I start up? I think "sqlite -header -column" will do it, but is there any way to put this in a stored preferences file or somethin

[sqlite] Tables involved in queries

2004-01-20 Thread Drew, Stephen
Hello, It would be very useful to be able to determine which tables are being used in a given query. The background is that we are performing a local caching of queries by caching the underlying tables from an Oracle database in a local SQLite database. Given this query: SELECTA.col_1,

Re: [sqlite] [Repost] Implementing Full Text Search

2004-01-20 Thread Matt Sergeant
On 20 Jan 2004, at 7:25, George Ionescu wrote: The question is this: since most of RDBMS implement full text search, shouldn't this be a feature sqlite could support ? SQLite is "lite" on purpose. Most RDBMS also support data types, as a counter example. Matt. _

Re: [sqlite] [Repost] Implementing Full Text Search

2004-01-20 Thread ben . carlyle
Hello, "George Ionescu" <[EMAIL PROTECTED]> 20/01/2004 05:25 PM To: <[EMAIL PROTECTED]> cc: Subject:[sqlite] [Repost] Implementing Full Text Search > The question is this: since most of RDBMS implement full text search, shouldn't this be a feature sql

[sqlite] Changing default_temp_store

2004-01-20 Thread George Ionescu
Hello sqlite users, Hello dr. Hipp, I'm trying to speed up sqlite and I would like to change the default_temp_store so that all temporary tables are created in memory, instead of file. I was wondering how can I do that. I've tried changing the TEMP_STORE macro to 3 - Always use memory, with no

[sqlite] [Repost] Implementing Full Text Search

2004-01-20 Thread George Ionescu
Hello dear SQLite users, Hello dr. Hipp, I'm reposting this because I didn't actually got an answer, just oppinions, which are fine as long as they are constructive... The question is this: since most of RDBMS implement full text search, shouldn't this be a feature sqlite could support ? Brad