Re: [sqlite] Counting changes in a INSERT/REPLACE

2014-07-30 Thread James K. Lowden
On Tue, 29 Jul 2014 16:49:04 -0400 "jose isaias cabrera" wrote: > BEGIN; > INSERT OR REPLACE INTO A > SELECT * FROM client.A WHERE id = 1 AND Date != '2014-06-22'; > INSERT OR REPLACE INTO A > SELECT * FROM client.A WHERE id = 2 AND Date != '2014-06-22'; > ... > ... >

Re: [sqlite] Counting changes in a INSERT/REPLACE

2014-07-29 Thread jose isaias cabrera
"Richard Hipp" wrote... On Tue, Jul 29, 2014 at 4:49 PM, jose isaias cabrera wrote: Is there a way to keep a count of the INSERTS/REPLACES that took place between the BEGIN and END? I was looking into the SQL changes() function, http://www.sqlite.org/lang_corefunc.html#changes but wou

Re: [sqlite] Counting changes in a INSERT/REPLACE

2014-07-29 Thread Richard Hipp
On Tue, Jul 29, 2014 at 4:49 PM, jose isaias cabrera wrote: > > Is there a way to keep a count of the INSERTS/REPLACES that took place > between the BEGIN and END? I was looking into the SQL changes() function, > > http://www.sqlite.org/lang_corefunc.html#changes > > but wouldn't it have to be d

[sqlite] Counting changes in a INSERT/REPLACE

2014-07-29 Thread jose isaias cabrera
Greetings! I have this update: BEGIN; INSERT OR REPLACE INTO A SELECT * FROM client.A WHERE id = 1 AND Date != '2014-06-22'; INSERT OR REPLACE INTO A SELECT * FROM client.A WHERE id = 2 AND Date != '2014-06-22'; ... ... INSERT OR REPLACE INTO A SELECT * FROM c