Re: [sqlite] Where are the tables being saved?

2005-04-23 Thread Witold Czarnecki
Run: sqlite -help ...and see the sqlite's command line syntax. You should give then db filename as an parameter. Otherwise DB will be created in the memory and not saved. Best regards, Witold - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Saturday,

Re: [sqlite] querying schema for integer primary key

2005-04-20 Thread Witold Czarnecki
Try: sqlite>.schema TableName ...will display table definition. Best regards, Witold

Re: [sqlite] High throughput and durability

2005-04-11 Thread Witold Czarnecki
rsync could be better. Best Regards, Witold And is there a way to automatically replicate the database to a second system? Copying the database file should give you an exact replica.

Re: [sqlite] How to create Auto Increment Field in SQlite

2005-04-04 Thread Witold Czarnecki
http://www.sqlite.org/autoinc.html try INTEGER PRIMARY KEY (no interger :-) Best regards, Witold - Original Message - From: "alok" <[EMAIL PROTECTED]> To: Sent: Monday, April 04, 2005 12:21 PM Subject: [sqlite] How to create Auto Increment Field in SQlite I am

Re: [sqlite] How do I Register on sqlite.org

2005-03-18 Thread Witold Czarnecki
You don't need to register. Just place the ticket: http://www.sqlite.org/cvstrac/tktnew Best regards, Witold - Original Message - From: "David Wheeler" <[EMAIL PROTECTED]> To: "SQLite Users" Sent: Friday, March 18, 2005 9:06 PM Subject: [sqlite] How do I

Re: [sqlite] thoughts on a web-based front end to sqlite3 db?

2005-03-07 Thread Witold Czarnecki
I strongly suggest to use pysqlite. APSW may be more powerfull in some areas but is not complaint with the python standard DB access API. If you will use pysqlite: 1) you will learn Python standard DBAPI 2) you will able to easly (relativly) migrate to another DB engine in future (mysql,

Re: [sqlite] Does sqlite has isnull function?

2005-03-06 Thread Witold Czarnecki
Sometimes IFNULL function can be also enough (http://sqlite.org/lang_expr.html). - Original Message - From: "Witold Czarnecki" <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Sunday, March 06, 2005 2:21 PM Subject: Re: [sqlite] Does sqlite has isnull f

Re: [sqlite] Does sqlite has isnull function?

2005-03-06 Thread Witold Czarnecki
You may use operator "ISNULL" instead. For example "SELECT x FROM table WHERE y ISNULL". Best reagrds, Witold - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Sunday, March 06, 2005 2:12 PM Subject: [sqlite] Does sqlite has isnull function? Hi All, I

Re: [sqlite] more syntax errors ?

2005-02-24 Thread Witold Czarnecki
Are there spaces in [Company Name] and [Contact Name] field names? Regards, Witold - Original Message - From: "Richard Nagle" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 4:40 PM Subject: [sqlite] more syntax errors ? fastmac:/applications/sqlite

Re: [sqlite] New to SQLite...............2....3..4 Thank you

2005-02-23 Thread Witold Czarnecki
ive to look into? Best regards Jan - Original Message - From: "Witold Czarnecki" <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Tuesday, February 22, 2005 8:45 PM Subject: Re: [sqlite] New to SQLite...23 There is good PHP/SQLite introduction here

Re: [sqlite] New to SQLite...............2....3

2005-02-22 Thread Witold Czarnecki
There is good PHP/SQLite introduction here: http://www.zend.com/php5/abs/php101-9.php Best regards, Witold - Original Message - From: "Jan Ekström" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 22, 2005 8:36 PM Subject: Re: [sqlite] New to

[sqlite] Are triggers atomic?

2005-02-22 Thread Witold Czarnecki
Are all operations in the trigger succeed or fail as a unit? Two updates for example. Or should I start the transaction before trigger firing? Best regards, Witold

[sqlite] 2 question about SQLite types

2005-02-21 Thread Witold Czarnecki
Hello, two questions: 1. SELECT TYPEOF(ROUND(1)); ... returns 'text'. Is it OK? Sorry, I asked this question 2 days ago but I still don't know - is it a bug or not? 2. sqlite> CREATE TABLE test(id INTEGER NOT NULL PRIMARY KEY UNIQUE, fld INTEGER); sqlite> INSERT INTO test(fld) VALUES(1);

Re: [sqlite] Is it bug?

2005-02-19 Thread Witold Czarnecki
3.0.8 - Original Message - From: "Ulrik Petersen" <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Saturday, February 19, 2005 11:57 AM Subject: Re: [sqlite] Is it bug? Witold Czarnecki wrote: sqlite> select typeof(round(1)); text Is it bug? What version? Ulrik Petersen

[sqlite] Is it bug?

2005-02-19 Thread Witold Czarnecki
sqlite> select typeof(round(1)); text Is it bug? Best regards, Witold

Re: [sqlite] Getting metadata

2005-02-17 Thread Witold Czarnecki
SELECT name FROM sqlite_master WHERE type = 'table' Best regards, Witold Czarnecki - Original Message - From: "Sijmen Mulder" <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Thursday, February 17, 2005 3:22 PM Subject: Re: [sqlite] Getting metadata PRAGMA

Re: [sqlite] Getting metadata

2005-02-17 Thread Witold Czarnecki
PRAGMA table_info(table-name); http://sqlite.org/pragma.html - Original Message - From: "Sijmen Mulder" <[EMAIL PROTECTED]> To: Sent: Thursday, February 17, 2005 3:03 PM Subject: [sqlite] Getting metadata Hi there, Is there a way to get information about the

Re: [sqlite] TYPEOF in triggers

2005-02-10 Thread Witold Czarnecki
Sent: Friday, February 11, 2005 12:16 AM Subject: Re: [sqlite] TYPEOF in triggers On Thu, 2005-02-10 at 23:59 +0100, Witold Czarnecki wrote: sqlite> CREATE TABLE test(a NUMERIC); sqlite> CREATE TRIGGER test1 BEFORE INSERT ON test FOR EACH ROW BEGIN ...> SELECT CASE WHEN (TYPEOF(NEW.a)

[sqlite] TYPEOF in triggers

2005-02-10 Thread Witold Czarnecki
Can you help?: sqlite> CREATE TABLE test(a NUMERIC); sqlite> CREATE TRIGGER test1 BEFORE INSERT ON test FOR EACH ROW BEGIN ...> SELECT CASE WHEN (TYPEOF(NEW.a) != 'numeric') THEN RAISE(ABORT, 'Error!') END; ...> END; sqlite> INSERT INTO test VALUES('aaa'); sqlite> SELECT TYPEOF(a) FROM

Re: [sqlite] would someone check my SQL..

2005-02-10 Thread Witold Czarnecki
You may try: SELECT NULL FROM sqlite_master WHERE tbl_name = 'table'; - Original Message - From: "Asko Kauppi" <[EMAIL PROTECTED]> To: Sent: Thursday, February 10, 2005 5:08 PM Subject: Re: [sqlite] would someone check my SQL.. Is it true that in SQLite one has