Re: [sqlite] autonum primary key

2006-06-05 Thread rbundy
http://www.sqlite.org/faq.html. No. 1. |-+> | | "[EMAIL PROTECTED]| | | " >--| |

Re: [sqlite] where I can download sqlite 3.2.8

2006-05-29 Thread rbundy
All the filenames you need to modify are on the download page. Regards. rayB ** PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING * *** Confidentiality and Privilege Notice *** This e-mail is intended only to be read or used by the

[sqlite] Re: - [sqlite] NOT NULL in create table command not work

2006-05-24 Thread rbundy
Are you confusing a NULL with an empty (zero length) string? They are not the same. Regards. rayB |-+> | | "Nguyen Dang | | | Quang" | | | <[EMAIL PROTECTED]| | | m>

[sqlite] Re: - Re: [sqlite] How can I get the type of a column?

2006-05-10 Thread rbundy
Perhaps the analogy is better the other way around - try driving a stick shift after driving an automatic. Takes a gear change or two for you to realise what the other pedal is for. As you mention, this is a constant point of discussion on this board. Perhaps 'Version 3 Data Types' should be

[sqlite] Re: - [sqlite] Incrementing the value of a column

2006-03-21 Thread rbundy
Try: UPDATE table SET aColumn = someNewValue, numTouched = numTouched + 1 WHERE ; Regards. rayB |-+> | | Tito Ciuro | | | <[EMAIL PROTECTED]> | | || | |

Re: [sqlite] Re: - [sqlite] WHERE expression problem

2006-03-14 Thread rbundy
Try: select count(*) from table1 where (timestamp >13448180261410868 and timestamp <= 13448182164507680); not: select count(*) from table1 where ((timestamp >13448180261410868) and (timestamp <= 13448182164507680)); Regards. rayB ** PLEASE CONSIDER OUR ENVIRONMENT BEFORE

[sqlite] Re: - [sqlite] WHERE expression problem

2006-03-14 Thread rbundy
"The second query says that before time A there are 46 entries." No, that is not what the query states: select count(*) from table1 where (timestamp<=13448180261410868); ^ Regards. rayB ** PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING *

Re: [sqlite] String to numeric conversion

2006-02-08 Thread rbundy
Please leave the current functionality as is. I believe it is the role of the host language to perform any editing or translation of data, such as the removal of leading or trailing spaces, not the SQL engine. Regards. rayB ** PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING

Re: [sqlite] Auto Increment?

2006-01-30 Thread rbundy
http://www.sqlite.org/lang_createtable.html Regards. rayB |-+> | | Clint Bailey | | | <[EMAIL PROTECTED]| | | h.net> | | || | |

Re: [sqlite] 2nd question about 'localtime'

2005-12-22 Thread rbundy
Does the column need to be loaded with UTC? Why not just insert the column with localtime already applied? It would make the SELECT you require trivial: SELECT * FROM table WHERE datefield = '2005-12-23'. Regards. rayB |-+> | | "Murray @

Re: [sqlite] CURRENT_TIMESTAMP records / displays incorrect value?

2005-12-21 Thread rbundy
Refer http://www.sqlite.org/cvstrac/wiki?p=DateAndTimeFunctions. 'localtime' has to be allowed for. Regards. rayB |-+> | | "Murray @| | | PlanetThoughtful"| | |

RE: [sqlite] CHECK constraints

2005-11-02 Thread rbundy
My information is that MySQL does not enforce check constraints - your testing supports this. Regards. rayB |-+> | | "Marcus Welz"| | | <[EMAIL PROTECTED]| | | om> | | |

Re: [sqlite] SQL Window/OLAP functions

2005-10-12 Thread rbundy
Seconded. |-+> | | "Laurent"| | | <[EMAIL PROTECTED]| | | ternet.fr> | | || | | 12/10/2005 23:36 | | | Please respond

[sqlite] Re: - Re: [sqlite] Formatting the strftimeFunc function

2005-10-10 Thread rbundy
... internationalise. Sorry, couldn't resist. |-+> | | [EMAIL PROTECTED]| | || | | 11/10/2005 07:48 | | | Please respond to| | | sqlite-users

[sqlite] Re: - Re: [sqlite] query problem

2005-09-19 Thread rbundy
No. COUNT(*) of an empty result returns 0. COUNT(*) should always return an integer value, never NULL. It is a row-based, rather than a column-based, aggregate function. rayB |-+> | | "D. Richard Hipp"| | | <[EMAIL

Re: [sqlite] count(*) slow

2005-09-15 Thread rbundy
... and where will it stop? Someone will then ask for 'SELECT COUNT(*) ... WHERE ...' changes. Agreed, leave things as they are. rayB |-+> | | Darren Duncan| | | <[EMAIL PROTECTED]| | | can.net>

Re: [sqlite] Did OSCON tutorial get accepted for AUUG in oct?

2005-08-09 Thread rbundy
Is it M6 you are referring to? http://www.auug.org.au/events/2005/auug2005/tutorials.html Regards. rayB |-+> | | Klint Gore | | | <[EMAIL PROTECTED]| | | u> | | |

[sqlite] Re: - Re: [sqlite] Training opportunity: The Inner Workings Of SQLite

2005-06-19 Thread rbundy
I too would be happy to pay for DVDs if they were to be made available. Tyranny of distance prevents me from attending (Sydney, Australia based). rayB |-+> | | "Paul G" | | | <[EMAIL PROTECTED]| | |

[sqlite] Re: - [sqlite] How to do NULL Handling in SELECT Statement?

2005-03-22 Thread rbundy
Try: SELECT * FROM t1 WHERE b IS NULL; A column value is null or not null; it cannot be said to equal null as null has no value; rayB |-+---> | | Stefan Finzel | | | <[EMAIL PROTECTED]| | |

Re: [sqlite] Speeding up your SQLite DB (Windows mostly)

2005-02-09 Thread rbundy
No, thank you for taking the time and effort for this very informative post-mortem. There's some stuff here I didn't know, so my knowledge and skills have also been expanded. Regards. rayB *** Confidentiality and Privilege Notice *** This e-mail is intended

Re: [sqlite] VACUUM question

2005-02-09 Thread rbundy
Just curious. What is it that is motivating you to vacuum so frequently? Regards. rayB *** Confidentiality and Privilege Notice *** This e-mail is intended only to be read or used by the addressee. It is confidential and may contain legally privileged

Re: [sqlite] How are NULL values deleted?

2004-10-29 Thread rbundy
It's not possible for a column value to be equal to NULL; hence the SQL syntax is 'IS NULL'. However, in an UPDATE statement, writing 'columnA=NULL' is valid, as in this context '=' is an assignment, not a relationship operator. Regards. rayB |-+> |

Re: [sqlite] sqlite.exe binary (windows)

2004-09-10 Thread rbundy
SQLite generating the "create index" SQL DDL statement at the end of the .dump output is the correct behaviour. In my experience using a number of different DBMSs, the sequence of data loading and then indexing is usually quicker than performing those operations the other way round. In a

RE: [sqlite] How can i get the column's names from a table with t he sqlite.exe command line ?

2004-08-26 Thread rbundy
Or try: .mode lines .null select * from tablename limit 1; The output is more readable if tablename has many columns and also provides some example data for each column. rayB |-+---> | | "Griggs, Donald"| | |

[sqlite] Re: - [sqlite] Cloudscape?

2004-08-03 Thread rbundy
Windows download is 628.1MB. There goes your hard drive. 'Nuff said really. rayB |-+> | | Andrew Piskorski | | | <[EMAIL PROTECTED]| | | m> | | || |

Re: [sqlite] Bug with UNION

2004-05-31 Thread rbundy
UNION working correctly. UNION returns distinct values; UNION ALL returns all rows (including duplicates). rayB *** Confidentiality and Privilege Notice *** This e-mail is intended only to be read or used by the addressee. It is confidential and may contain